summaryrefslogtreecommitdiff
path: root/Makefile
blob: 196969e0100788fc0afff6cc2de864cda2ee82d1 (plain)
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

-include config.mk

# Rely on EMACSLOADPATH for everything but the current directory.
BATCH = emacs -Q --batch -L .

all: loadpath piem.info piem.elc \
	piem-b4.elc piem-elfeed.elc piem-eww.elc \
	piem-gnus.elc piem-notmuch.elc

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

.PHONY: loadpath
loadpath:
	@echo ";;; EMACSLOADPATH=$(EMACSLOADPATH)"

%.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)/$@\"))"