Initial commit

This commit is contained in:
2021-08-30 16:13:34 +02:00
commit 42587adc9f
3 changed files with 502 additions and 0 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
EMACS = emacs -q --batch
define tangle
$(EMACS) $(1) --eval "(require 'org)" --eval '(org-babel-tangle)'
endef
MAIN = README.org
SOURCES = $(shell grep -oe ':tangle \+[^ ]\+' $(MAIN) | awk '{print $$2}' | sort -u)
$(SOURCES): $(MAIN)
$(call tangle,$<)
tangle: $(SOURCES)
clean:
rm -r $(SOURCES)
.PHONY: clean tangle