-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathMakefile
30 lines (25 loc) · 856 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SHELL = /bin/sh
EMACS ?= emacs
PROFILER =
RM= @rm -rf
EMACS_BATCH_OPTS=--batch -Q \
-l elpa-mirror.el \
--eval "(setq my-test-dir (file-truename \"test-package-output\"))"
.PHONY: test deps clean compile
# Delete byte-compiled files etc.
clean:
$(RM) *~
$(RM) \#*\#
$(RM) *.elc
$(RM) tests/tar
$(RM) tests/bsdtar
deps:
@$(EMACS) $(EMACS_BATCH_OPTS) -l tests/elpa-mirror-test-common.el -l tests/elpa-mirror-test-deps.el
compile: deps
$(RM) *.elc
@$(EMACS) $(EMACS_BATCH_OPTS) -l tests/my-byte-compile.el 2>&1 | grep -E "([Ee]rror|[Ww]arning):" && exit 1 || exit 0
# Run tests.
test: clean deps compile
@mkdir -p tests/tar tests/bsdtar
@$(EMACS) $(EMACS_BATCH_OPTS) -l tests/elpa-mirror-test-common.el -l tests/elpa-mirror-test-gnu-tar.el
@$(EMACS) $(EMACS_BATCH_OPTS) -l tests/elpa-mirror-test-common.el -l tests/elpa-mirror-test-bsd-tar.el