summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-01-10 23:43:14 -0500
committerKyle Meyer <kyle@kyleam.com>2016-01-12 22:15:25 -0500
commit8d97d1f2063f19c0c679e54fc082691a495c9303 (patch)
tree77cc0ce12ecceb5739b5d0e35a5bc2eab09a9adc /Makefile
parent2d395ef1ccedd51e3c11b1eb8ff552f03bae4797 (diff)
downloademacs.d-8d97d1f2063f19c0c679e54fc082691a495c9303.tar.gz
Rewrite configuration with use-package
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..54b6d92
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+
+LOAD_PATH ?=
+BATCH = emacs -Q --batch $(LOAD_PATH)
+
+LOADDEFS_FNAME = km-emacs-autoloads.el
+LOADDEFS = lisp/$(LOADDEFS_FNAME)
+
+ELS = $(shell find lisp -maxdepth 1 \
+ -type f \( -name "*.el" -and ! -name "$(LOADDEFS_FNAME)" \) -print)
+
+$(LOADDEFS): $(ELS)
+ @$(BATCH) --eval "\
+ (let* ((make-backup-files nil) \
+ (default-directory \"$(CURDIR)\") \
+ (generated-autoload-file (expand-file-name \"$(LOADDEFS)\"))) \
+ (update-directory-autoloads \"lisp/\"))"
+
+%.elc: %.el
+ @$(BATCH) -f batch-byte-compile $<