summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2025-11-30 19:44:38 +0100
committerJonas Bernoulli <jonas@bernoul.li>2025-11-30 19:44:38 +0100
commitd272c3a773a664f33cd61341194d186b1158b4b1 (patch)
tree0fc787d1ae49fd123c0f83f3b7d07c831f7456ff /test
parent4e6d3fc815c3d0cb76c7b127a1360d24f5783791 (diff)
make: Duplicate %.elc target
Do so to keep "default.mk" and "lisp/Makefile" in sync with the respective files from other packages.
Diffstat (limited to 'test')
-rw-r--r--test/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index 25c4cdc..5476705 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,7 +1,7 @@
-include ../config.mk
include ../default.mk
-LOAD_PATH += -L $(TOP)test
+LOAD_PATH += -L $(TOP)test
test: lisp
@printf " Testing...\n"
@@ -10,6 +10,10 @@ test: lisp
lisp: ../lisp/$(PKG).elc $(PKG)-test.elc
+%.elc: %.el
+ @printf "Compiling $<\n"
+ @$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) -f batch-byte-compile $<
+
clean:
@printf " Cleaning test/*...\n"
@rm -rf $(PKG)-test.elc