Initial Commit

This commit is contained in:
2019-01-31 09:41:03 +01:00
commit 80113fd633
25 changed files with 18206 additions and 0 deletions

25
Makefile Normal file
View File

@@ -0,0 +1,25 @@
cache_dir := .cache
orgs := $(wildcard dotfiles/*.org)
tangle_el := elisp/tangle.el
^el = $(filter %.el,$^)
EMACS.funcall = emacs --batch --no-init-file $(addprefix --load ,$(^el)) --funcall
all: tangle
clean:
rm -rf $(cache_dir)
tangle: $(basename $(orgs))
$(cache_dir)/%.out: %.org $(tangle_el) $(cache_dir)/
$(EMACS.funcall) literate-dotfiles-tangle $< > $@
%/:
mkdir -p $@
%: %.org $(cache_dir)/%.out
@$(NOOP)
.PHONY: all clean test
.PRECIOUS: $(cache_dir)/ $(cache_dir)/%.out