18 lines
387 B
Makefile
18 lines
387 B
Makefile
ORG_FILES = $(wildcard *.org)
|
|
TOUCH_FILES = $(ORG_FILES:%.org=_build/%.touch)
|
|
|
|
tangle: $(TOUCH_FILES)
|
|
@echo "Tangled files:"
|
|
@echo $(ORG_FILES)
|
|
|
|
_build/%.touch: %.org
|
|
time -- emacs --batch --no-init-file --load lisp/babel.el \
|
|
--find-file $< --funcall org-babel-tangle --kill
|
|
touch $@
|
|
|
|
.PHONY: init
|
|
init: tangle
|
|
mix deps.get
|
|
mix deps.compile
|
|
cd assets; npm install
|