aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-05-08 00:35:40 -0400
committerKyle Meyer <kyle@kyleam.com>2020-05-08 00:38:31 -0400
commit74fd0d857a86893b5e17c380bd034fb6da4b0661 (patch)
treed688b8e3531ccea55fe6509172ad852cfe4ea013
parent4078a6e49cd0f10ccc0a1b48d791730ed92cd87a (diff)
downloadpiem-74fd0d857a86893b5e17c380bd034fb6da4b0661.tar.gz
Makefile: Use EMACSLOADPATH for dependencies
My main motivation for this move is that it works well with Guix environments. And outside of that context, it doesn't seem like it'd be any more of a hassle to set EMACSLOADPATH rather than individual variables like TRANSIENT_DIR in config.mk.
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 50c87d2..80f50c5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,19 @@
-include config.mk
-TRANSIENT_DIR ?= /dev/null
+# Rely on EMACSLOADPATH for everything but the current directory.
+BATCH = emacs -Q --batch -L .
-LOAD_PATH = -L . -L $(TRANSIENT_DIR)
-BATCH = emacs -Q --batch $(LOAD_PATH)
-
-all: piem.elc piem-b4.elc piem.info
+all: loadpath piem.elc piem-b4.elc piem.info
.PHONY: clean
clean:
$(RM) *.elc *-autoloads.el *.info
+.PHONY: loadpath
+loadpath:
+ @echo ";;; EMACSLOADPATH=$(EMACSLOADPATH)"
+
%.info: %.texi
makeinfo $<