1
0
Fork 0
arcology-elixir/Makefile

26 lines
513 B
Makefile

ORG_FILES = $(wildcard *.org)
TOUCH_FILES = $(ORG_FILES:%.org=_build/%.touch)
ORG_ROAM_DIRECTORY ?= ~/Code/org-roam
tangle: $(TOUCH_FILES)
@echo "Tangled files:"
@echo $(ORG_FILES)
_build:
mkdir _build
_build/%.touch: %.org _build
emacs --batch --no-init-file --load priv/lisp/babel.el \
--find-file $< --funcall org-babel-tangle --kill
touch $@
.PHONY: init
init: tangle
mix deps.get
mix deps.compile
mix compile
cd assets; npm install
test: tangle
MIX_ENV=test mix do arcology.build, test