summaryrefslogtreecommitdiff
path: root/site/Makefile
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2021-09-29 19:49:34 -0700
committerMarius Peter <marius.peter@tutanota.com>2021-09-29 19:49:34 -0700
commitf6dfa0dceb9fb0883d855f160af17e90987997f0 (patch)
tree697267b6385ae4259e5df73def1a894de568c1bb /site/Makefile
parentcbef40f96bfd754b25f999f3fad084fe04a47187 (diff)
Taking the meta to a new level.
Diffstat (limited to 'site/Makefile')
-rw-r--r--site/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/site/Makefile b/site/Makefile
new file mode 100644
index 0000000..c7ff8a8
--- /dev/null
+++ b/site/Makefile
@@ -0,0 +1,22 @@
+# Makefile for Smart Documents.
+
+.PHONY: all content styles
+
+all: content styles
+
+content: publish.el
+ @echo "Publishing site's content (html and site media)."
+ emacs --batch --load publish.el --eval="(org-publish \"content\")"
+
+styles: publish.el
+ @echo "Publishing site's assets (css, js, img, fonts etc.)."
+ emacs --batch --load publish.el --eval="(org-publish \"assets\")"
+
+css: publish.el
+ @echo "Publishing site's css stylesheets."
+ emacs --batch --load publish.el --eval="(org-publish \"css\")"
+
+clean:
+ @echo "Cleaning up.."
+ @rm -rvf *.elc
+ @rm -rvf ~/.org-timestamps/*
Copyright 2019--2024 Marius PETER