summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Letan <lthms@soap.coffee>2020-02-22 16:15:08 +0100
committerThomas Letan <lthms@soap.coffee>2020-02-22 16:15:08 +0100
commitd50ee0c558512b908372af0186b15407c452dbd1 (patch)
tree20a349c722a311e59095123fbb49fcff08bc84f3 /Makefile
parentMake ~make~ to call itself with the `build` rule when none is given (diff)
Use `tangle-org.el' during bootstrap
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 15 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 75a5462..7f3b148 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,25 @@
ROOT := $(shell pwd)
CLEODIR := site/posts/meta
EMACS := ROOT="${ROOT}" emacs
+TANGLE := --batch --load="${ROOT}/scripts/tangle-org.el" 2>> build.log
-GENFILES := scripts/tangle-org.el bootstrap.mk
+GENFILES :=
+CONTENTS :=
+GENSASS :=
-default:
- @make build
+default: init-log build
+
+init-log:
+ @echo "==========[CLEOPATRA BUILD LOG]==========" > build.log
+
+.PHONY: init-log default build
+
+GENFILES += bootstrap.mk
+GENSASS +=
include bootstrap.mk
-Makefile bootstrap.mk scripts/tangle-org.el \
+bootstrap.mk \
&: ${CLEODIR}/Bootstrap.org
@echo " tangle $<"
- @${EMACS} $< --batch \
- --eval "(require 'org)" \
- --eval "(cd (getenv \"ROOT\"))" \
- --eval "(setq org-src-preserve-indentation t)" \
- --eval "(org-babel-do-load-languages 'org-babel-load-languages'((shell . t)))" \
- --eval "(setq org-confirm-babel-evaluate nil)" \
- --eval "(org-babel-tangle)"
+ @${EMACS} $< ${TANGLE}