2016-09-08 02:10:01 +02:00
|
|
|
EMACS = /usr/bin/emacs
|
|
|
|
|
|
|
|
define tangle =
|
2016-09-18 00:04:54 +02:00
|
|
|
@echo -e "\e[35mOBT\e[0m" $<
|
|
|
|
@$(EMACS) -batch \
|
2016-10-19 21:00:03 +02:00
|
|
|
-eval "(package-initialize)" \
|
2016-09-08 02:10:01 +02:00
|
|
|
-load ob-tangle \
|
2016-10-07 17:20:24 +02:00
|
|
|
-eval "(org-babel-tangle-file \"$<\" \"$(notdir $@)\" \"$(1)\")"
|
2016-09-08 02:10:01 +02:00
|
|
|
endef
|