forked from emacs-php/php-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 730 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 730 Bytes
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
EMACS = emacs -Q -batch -L .
ELS = php-mode.el php-mode-test.el
ELCS = $(ELS:.el=.elc)
%.elc: %.el
$(EMACS) -f batch-byte-compile $<
all: $(ELCS)
clean:
rm -f $(ELCS)
# Runs all unit tests from php-mode-test.el and shows the results. The
# script will exit with the status code zero if all tests pass. If any
# test fails the script exits with a non-zero status and shows
# diagnostics on standard output.
#
# You can use this script with git-bisect. See the documentation at
#
# http://git-scm.com/book/en/Git-Tools-Debugging-with-Git
#
# for an example of using a script like this with the 'git bisect run'
# command.
test: $(ELCS)
$(EMACS) -l php-mode-test.el -f ert-run-tests-batch-and-exit
.PHONY: all clean test