Version bump.
[pelican-mode.git] / Makefile
1 #!/usr/bin/make -f
2 #
3 # This is free and unencumbered software released into the public
4 # domain.
5 #
6 # Anyone is free to copy, modify, publish, use, compile, sell, or
7 # distribute this software, either in source code form or as a
8 # compiled binary, for any purpose, commercial or non-commercial, and
9 # by any means.
10
11 EMACS ?= $(firstword $(shell command -v /Applications/Emacs.app/Contents/MacOS/Emacs emacs))
12 SRC := pelican-mode.el
13 OBJ := $(SRC:.el=.elc)
14 DIR := $(dir $(lastword $(MAKEFILE_LIST)))
15 TESTS := $(SRC:.el=.test.stamp)
16
17 .INTERMEDIATE: $(TESTS)
18
19 all: $(OBJ) test
20
21 clean:
22 rm -f $(OBJ) $(TESTS)
23
24 test: $(TESTS)
25
26 %.elc: %.el
27 $(EMACS) -Q -batch -L $(DIR) -f batch-byte-compile $<
28
29 %.test.stamp: %-test.elc %.elc
30 $(EMACS) -Q -batch -L $(DIR) -eval "(checkdoc-file \"$*.el\")"
31 $(EMACS) -Q -batch -L $(DIR) -l $< -f ert-run-tests-batch-and-exit
32 touch $@
33
34 .PHONY: all clean test