diff options
author | Kyle Meyer <kyle@kyleam.com> | 2020-05-08 00:35:40 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-05-08 00:38:31 -0400 |
commit | 74fd0d857a86893b5e17c380bd034fb6da4b0661 (patch) | |
tree | d688b8e3531ccea55fe6509172ad852cfe4ea013 | |
parent | 4078a6e49cd0f10ccc0a1b48d791730ed92cd87a (diff) | |
download | piem-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-- | Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 $< |