summaryrefslogtreecommitdiff
blob: 513142edc8e76c17f9fa22c8ed3811d3e60085e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
EMACS       := emacs
FIND        := find

EMACFLAGS   := --batch -q --no-site-file
EMACSCMD     = $(EMACS) $(EMACFLAGS)


.PHONY: all
all: clean compile

.PHONY: clean
clean:
	$(FIND) $(PWD) -iname "*.elc" -delete

%.elc:
	$(EMACSCMD) --eval "(byte-compile-file \"$(*).el\" 0)"

.PHONY: compile
compile: openrc.elc