aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-02-02 03:39:56 +0300
committerCem Keylan <cem@ckyln.com>2021-02-02 03:39:56 +0300
commite7999a032bd888abf3665c501a754dbb922fe7c9 (patch)
tree9e6fd5104482ba77815a1ed1d591e9ba8167be78 /Makefile
parentc17e5bd8eb9c0b98b5b6eb9b6cd8f38e2856bb40 (diff)
downloadwebsite-e7999a032bd888abf3665c501a754dbb922fe7c9.tar.gz
Switch to org-mode for generating the website
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c366fdd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+EMACS = emacs
+
+all: docs style
+ emacs --batch --script ./org-publish.el
+
+docs: update-submodules
+ mkdir -p docs/docs
+ makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css -o docs/docs/carbslinux texidocs/carbslinux.texi
+ makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css --no-split -o docs/docs/carbslinux.html texidocs/carbslinux.texi
+ cp texidocs/carbslinux.txt docs/docs/carbslinux.txt
+
+style: update-submodules
+ mkdir -p docs
+ cp style/carbslinux.css docs/style.css
+
+update-submodules:
+ git submodule update --remote --init --recursive -f
+
+publish:
+ ${EMACS} --batch --script ./org-publish.el
+
+rebuild:
+ rm -rf .cache/var/timestamps
+ ${MAKE} all
+
+clean:
+ rm -rf ./docs ./.cache/var/timestamps
+
+.PHONY: all docs style update-submodules publish rebuild clean