summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Letan <lthms@soap.coffee>2020-02-20 18:09:35 +0100
committerThomas Letan <lthms@soap.coffee>2020-02-20 18:09:35 +0100
commit36b9264cc8eedcc6f4d3f8499b3d627e4ffae52b (patch)
treeecebd53849f7f5e9d8d96bbe91cd60d7cf98d706 /Makefile
parentMake cleopatra extensible (diff)
Make an heavy use of Makefile variables
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 09b442d..69739d1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,14 @@
-SASS := $(shell find site/ -name "*.sass")
-INPUTS := $(SASS:.sass=.css)
-MAKEFILES := bootstrap.mk
ROOT := $(shell pwd)
-GEN_SCRIPTS := scripts/tangle-org.el
-EMACSARGS := --batch --eval "(require 'org)" \
- --eval "(org-babel-do-load-languages 'org-babel-load-languages '((shell . t)))" \
- --eval "(org-babel-tangle)"
+CLEODIR := site/posts/meta/
+GENFILES := scripts/tangle-org.el bootstrap.mk
-include ${MAKEFILES}
+include bootstrap.mk
bootstrap.mk scripts/tangle-org.el &: site/posts/meta/Bootstrap.org
@echo " tangle $<"
- @ROOT="${ROOT}" emacs $< ${EMACSARGS} 2>/dev/null
+ @ROOT="${ROOT}" emacs $< --batch \
+ --eval "(require 'org)" \
+ --eval "(setq org-src-preserve-indentation t)" \
+ --eval "(org-babel-tangle)"
.PHONY: clean build force