summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ddaa3b2..8b04a53 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,19 @@
BATCH = emacs -Q --batch
-all: piem.info
+all: piem.elc piem.info
.PHONY: clean
clean:
- $(RM) *.info
+ $(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)/$@\"))"