summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Letan <lthms@soap.coffee>2020-02-22 14:34:21 +0100
committerThomas Letan <lthms@soap.coffee>2020-02-22 14:41:03 +0100
commitdae198a981becb270f62a817f2406f23481dc1b0 (patch)
tree2df7ccb6fedbc255d3c5a233cd859179339ed062 /Makefile
parentInitiate the redaction of Bootstrap.org (diff)
Provide a generic and reliable way to extends cleopatra
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 565cd8a..297f87e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
ROOT := $(shell pwd)
CLEODIR := site/posts/meta
-GENFILES := scripts/tangle-org.el bootstrap.mk
EMACS := ROOT="${ROOT}" emacs
+GENFILES := scripts/tangle-org.el bootstrap.mk
+
default: build
include bootstrap.mk
@@ -12,5 +13,8 @@ Makefile bootstrap.mk scripts/tangle-org.el \
@echo " tangle $<"
@${EMACS} $< --batch \
--eval "(require 'org)" \
+ --eval "(cd (getenv \"ROOT\"))" \
--eval "(setq org-src-preserve-indentation t)" \
- --eval "(org-babel-tangle)" 2>/dev/null
+ --eval "(org-babel-do-load-languages 'org-babel-load-languages'((shell . t)))" \
+ --eval "(setq org-confirm-babel-evaluate nil)" \
+ --eval "(org-babel-tangle)"