new-ryuslash.org/GNUmakefile

11 lines
235 B
Makefile

define tangle =
eldev emacs -quick -batch \
-eval "(package-initialize)" \
-load ob-tangle \
-eval "(org-babel-tangle-file \"$<\" \"$(PWD)/$@\"$(if $1, \"$1\"))"
endef
%.mk: build.org
$(call tangle)
include build.mk