From 74fd0d857a86893b5e17c380bd034fb6da4b0661 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 8 May 2020 00:35:40 -0400 Subject: 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. --- Makefile | 12 +++++++----- 1 file 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 $< -- cgit v1.2.3