aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile45
1 files changed, 21 insertions, 24 deletions
diff --git a/Makefile b/Makefile
index 3552b5d..e9e7552 100644
--- a/Makefile
+++ b/Makefile
@@ -1,32 +1,29 @@
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
+ sed -e '3a#+ALIASES[]: /install.html' -e 1d 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
+ ln -sf blog/index.xml public/rss.xml
+ ln -sf news/index.xml public/news.xml
+
+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