2016-09-08 02:10:01 +02:00
|
|
|
EMACS = /usr/bin/emacs
|
2016-11-11 15:36:26 +01:00
|
|
|
SCHEME_IMPLEMENTATION = guile
|
2016-09-08 02:10:01 +02:00
|
|
|
|
|
|
|
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-11-11 15:36:26 +01:00
|
|
|
-eval "(setq sh-make-vars-local nil)" \
|
|
|
|
-eval "(setq geiser-default-implementation '$(SCHEME_IMPLEMENTATION))" \
|
2016-10-07 17:20:24 +02:00
|
|
|
-eval "(org-babel-tangle-file \"$<\" \"$(notdir $@)\" \"$(1)\")"
|
2016-09-08 02:10:01 +02:00
|
|
|
endef
|