13 lines
424 B
Makefile
13 lines
424 B
Makefile
EMACS = /usr/bin/emacs
|
|
SCHEME_IMPLEMENTATION = guile
|
|
|
|
define tangle =
|
|
echo $(SCHEME_IMPLEMENTATION)
|
|
@echo -e "\e[35mOBT\e[0m" $<
|
|
@$(EMACS) -batch \
|
|
-eval "(package-initialize)" \
|
|
-load ob-tangle \
|
|
-eval "(setq sh-make-vars-local nil)" \
|
|
-eval "(setq geiser-default-implementation '$(SCHEME_IMPLEMENTATION))" \
|
|
-eval "(org-babel-tangle-file \"$<\" \"$(notdir $@)\" \"$(1)\")"
|
|
endef
|