[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup ca09040 130/340: Improve the Makefile
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup ca09040 130/340: Improve the Makefile |
Date: |
Thu, 16 Dec 2021 14:59:19 -0500 (EST) |
branch: elpa/buttercup
commit ca090405d92d28bc9552ef4d5eab00e3d18a7d3c
Author: Ryan C. Thompson <rct@thompsonclan.org>
Commit: Jorgen Schäfer <Jorgen.Schaefer@gmail.com>
Improve the Makefile
* Make compile a prerequisite of test
* Compile elisp files in parallel (with make -j)
* Use wildcards to avoid enumerating all elisp files
---
Makefile | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index b7fd593..1802b07 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,20 @@
EMACS := emacs
-VERSION = $(shell sed -ne 's/^;; Version: \(.*\)/\1/p' buttercup.el)
-DISTFILES = buttercup.el buttercup-compat.el buttercup-pkg.el README.md
+VERSION := $(shell sed -ne 's/^;; Version: \(.*\)/\1/p' buttercup.el)
+ELISP_FILES := $(shell ls *.el | grep -v -- '-pkg\.el$$')
+DISTFILES := $(ELISP_FILES) buttercup-pkg.el README.md
-
-.PHONY: test
+.PHONY: test compile clean
all: test
-test:
+test: compile
$(EMACS) -batch -L . -l buttercup.el -f buttercup-run-markdown
docs/writing-tests.md
./bin/buttercup -L .
-compile:
- $(EMACS) -batch -L . -f batch-byte-compile *.el
+compile: $(patsubst %.el,%.elc,$(ELISP_FILES))
+
+%.elc: %.el
+ $(EMACS) -batch -L . -f batch-byte-compile $<
release: clean test
mkdir -p dist
- [nongnu] elpa/buttercup 843fa6f 327/340: Keep the actual variable definition with the reporter, (continued)
- [nongnu] elpa/buttercup 843fa6f 327/340: Keep the actual variable definition with the reporter, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 315a891 326/340: Fix stack frame collection in buttercup--backtrace, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup cccdedf 334/340: Merge pull request #197 from snogge/omit-traceback, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup bef49f5 323/340: Remove extra newline in error backtrace, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 6ef715f 328/340: Use buttercup--mark-stackframe to mark the start of test code, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 2f24a44 338/340: Make formatting of backtrace frames closer to that standard for Emacs, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup f6f9335 337/340: test: Add tests for buttercup-run-discovery, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 553ff83 103/340: Add :to-have-same-items-as to compare lists as sets., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 657acef 102/340: Bump version: 1.4 → 1.5, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 7e8898b 127/340: Implement :to-have-been-called-times matcher (close #90), ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup ca09040 130/340: Improve the Makefile,
ELPA Syncer <=
- [nongnu] elpa/buttercup a535e51 134/340: Fix a logic error in spy tests, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 6ad9565 135/340: Fix several edge cases in "spy-on", ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 389dc43 139/340: Fix a problem with reporter tests suppressing failure messages, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 929a904 143/340: Implement closure-based expect macro, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 11d7fdc 148/340: Add "--help" option to buttercup command-line script, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 4106adc 170/340: Add release script, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 9b6cc79 177/340: travis: Test on 26.1, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 0d742b0 187/340: Set failure-description for pending specs, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 1c50a80 196/340: Fix the buttercup-run tests, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 810fa6f 197/340: Bump version: 1.15 → 1.16, ELPA Syncer, 2021/12/16