Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (20 sloc) 571 Bytes
# emacs invocation
EMACS := emacs -Q -batch
# additional emacs loadpath
LOADPATH := -L . -L extensions
# files to compile
EL := $(filter-out anything-startup.el, $(wildcard anything*.el) $(wildcard extensions/*.el))
# compiled files
ELC := $(EL:.el=.elc)
.PHONY: clean batch-compile
all: clean batch-compile
$(ELC): %.elc: %.el
$(EMACS) $(LOADPATH) -f batch-byte-compile $<
# compile needed files
compile: $(ELC)
# compile all files at once
$(EMACS) $(LOADPATH) -f batch-byte-compile $(EL)
# remove all generated files
rm -f $(ELC)
Jump to Line
Something went wrong with that request. Please try again.