summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8b04a53be09953ab18cdf28b4ea6ec43a0c2b6dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

BATCH = emacs -Q --batch

all: piem.elc piem.info

.PHONY: clean
clean:
	$(RM) *.elc *-autoloads.el *.info

%.info: %.texi
	makeinfo $<

%.elc: %.el
	$(BATCH) -f batch-byte-compile $<

%-autoloads.el: %.el
	$(BATCH) --eval \
	"(let ((make-backup-files nil)) \
	  (update-file-autoloads \"$(CURDIR)/$<\" t \"$(CURDIR)/$@\"))"