dotfiles/dotfiles.mk

12 lines
393 B
Makefile

EMACS = /usr/bin/emacs
SCHEME_IMPLEMENTATION = guile
define tangle =
@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