aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-08-31 01:13:15 +0300
committerCem Keylan <cem@ckyln.com>2021-08-31 01:13:15 +0300
commit08c5bd21fa02e1b30fe2e4c194d9c615a4daf2c6 (patch)
treeb471d65a2ad20665dc0e0e8f91aa67ac4c0949b1 /Makefile
parent25cfa83501cf9b0a1f79d7d94af13b0866c33aa7 (diff)
downloadwebsite-08c5bd21fa02e1b30fe2e4c194d9c615a4daf2c6.tar.gz
website: switch to hugo
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile43
1 files changed, 19 insertions, 24 deletions
diff --git a/Makefile b/Makefile
index 3552b5d..8d8d59a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,32 +1,27 @@
EMACS = emacs
-all: docs style
- ${EMACS} --batch --script ./org-publish.el
-
-docs: texidocs/carbslinux.texi texidocs/carbslinux.txt
- mkdir -p docs/docs
- makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css -o docs/docs/cpt cpt/docs/cpt.texi
- makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css --no-split -o docs/docs/cpt.html cpt/docs/cpt.texi
- 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
- cp cpt/docs/cpt.txt docs/docs/cpt.txt
-
-style: style/carbslinux.css
- mkdir -p docs
- cp style/carbslinux.css docs/style.css
+all: public
+
+public: style texidocs/carbslinux.texi texidocs/carbslinux.txt
+ cp texidocs/install.org content/install.org
+ hugo
+ mkdir -p public/docs
+ makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css -o public/docs/cpt cpt/docs/cpt.texi
+ makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css --no-split -o public/docs/cpt.html cpt/docs/cpt.texi
+ makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css -o public/docs/carbslinux texidocs/carbslinux.texi
+ makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css --no-split -o public/docs/carbslinux.html texidocs/carbslinux.texi
+ cp texidocs/carbslinux.txt public/docs/carbslinux.txt
+ cp texidocs/install.txt public/install.txt
+ cp cpt/docs/cpt.txt public/docs/cpt.txt
+
+style: style/carbslinux.min.css
+ mkdir -p static
+ cp style/carbslinux.css static/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
+ rm -rf public static
-.PHONY: all docs style update-submodules publish rebuild clean
+.PHONY: all public style update-submodules publish rebuild clean