Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 30 lines (20 sloc) 0.571 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
# 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
batch-compile:
$(EMACS) $(LOADPATH) -f batch-byte-compile $(EL)

# remove all generated files
clean:
rm -f $(ELC)
Something went wrong with that request. Please try again.