emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/macrostep a8e730e 089/110: Improve Makefile


From: ELPA Syncer
Subject: [nongnu] elpa/macrostep a8e730e 089/110: Improve Makefile
Date: Sat, 7 Aug 2021 09:18:08 -0400 (EDT)

branch: elpa/macrostep
commit a8e730e9b9ccd631432ed835d77067bdbd81ea55
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>

    Improve Makefile
---
 Makefile | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 0540b44..1af7050 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,17 @@
-test:
-       emacs --batch --load macrostep-test.el
+EMACS ?= emacs
 
-.PHONY: test
+all: macrostep.elc
+
+clean:
+       rm -f macrostep.elc macrostep-test.elc
+
+test: macrostep.elc
+       $(EMACS) --batch -L . --load macrostep-test.el
+
+sandbox: macrostep.elc
+       $(EMACS) -Q -L . --load macrostep.elc
+
+%.elc: %.el
+       $(EMACS) --batch --funcall batch-byte-compile "$<"
+
+.PHONY: test all clean



reply via email to

[Prev in Thread] Current Thread [Next in Thread]