-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
58 lines (41 loc) · 1.62 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
MODULE = poly-markdown
export EMACS ?= emacs
EMACS_VERSION = $(shell ${EMACS} -Q --batch --eval "(princ emacs-version)")
ELPA_DIR := .ELPA/$(EMACS_VERSION)
EMACSRUN = $(EMACS) -Q --debug-init -L . -L modes -L tests -L $(ELPA_DIR)
EMACSBATCH = $(EMACSRUN) --batch
ELS = $(wildcard *.el)
OBJECTS = $(ELS:.el=.elc)
LINTELS = $(filter-out poly-markdown-autoloads.el, $(ELS))
# export PM_VERBOSE
.PHONY: all build checkdoc lint clean cleanall melpa elpa start test version
all: build checkdoc test
build: version clean
@echo "******************* BUILDING $(MODULE) *************************"
$(EMACSBATCH) --load targets/melpa-init.el --funcall batch-byte-compile *.el
checkdoc: version
@echo "******************* CHECKDOC $(MODULE) *************************"
$(EMACSBATCH) --load targets/checkdoc.el
lint: version
@$(EMACSBATCH) --load targets/melpa-init.el --load targets/lint.el $(LINTELS)
clean:
rm -f $(OBJECTS)
cleanall: clean
rm -rf $(ELPA_DIR) *autoloads.el
melpa: version
$(EMACSBATCH) --load targets/melpa.el
elpa: melpa
start: version melpa
$(EMACSRUN) -L . --load targets/melpa-init.el --load tests/*.el
startvs: version
$(EMACSRUN) -L . --load targets/local.el \
--load tests/*.el --load ~/.eBasic.el
test: build version
@echo "******************* Testing $(MODULE) ***************************"
$(EMACSBATCH) --load targets/melpa-init.el --load targets/test.el
test-local: version
@echo "******************* Testing $(MODULE) ***************************"
$(EMACSBATCH) --load targets/local.el --load targets/test.el
version:
@echo "EMACS VERSION: $(EMACS_VERSION)"
@echo "GIT HEAD: $(shell git rev-parse --short HEAD)"