3 # This is free and unencumbered software released into the public
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
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
)
17 .INTERMEDIATE
: $(TESTS
)
27 $(EMACS
) -Q
-batch
-L
$(DIR
) -f batch-byte-compile
$<
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
34 .PHONY
: all clean test