-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
65 lines (42 loc) · 1.18 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
58
59
60
61
62
63
64
65
CASK ?= cask
-include makefile-local
ifdef EMACS
EMACS_ENV=EMACS=$(EMACS)
endif
.DEFAULT_GOAL=all
all: install test
.default: all
install:
$(EMACS_ENV) $(CASK) install
test: install just-test
package:
$(EMACS_ENV) $(CASK) package
just-test:
$(EMACS_ENV) $(CASK) emacs --batch -q \
--directory=. \
--load "assess-discover" \
--funcall assess-discover-run-and-exit-batch
org:
$(EMACS_ENV) $(CASK) emacs --debug --script build.el -- gen-org
html: org
$(EMACS_ENV) $(CASK) emacs --debug --script build.el -- gen-html
install-test:
echo [install] Installation Test Starting
$(MAKE) -C test/install-test/ test
travis: test install-test html
COMMIT_DATE = $(shell date +%y-%m-%d-%H-%m)
DISTRIB-LENTIC=../distrib-lentic
publish-doc: ../lentic-pages/index.html ../lentic-pages/include/lenticular.css
../lentic-pages/include/lenticular.css: ./include/lenticular.css
cp $< $@
../lentic-pages/index.html: lenticular.html
cp $< $@
# commit-distrib: info
# cp lentic*.info $(DISTRIB-LENTIC)
# cd $(DISTRIB-LENTIC);git pull;git add -A;git commit -m "automated-commit $(COMMIT_DATE)"
clean:
-rm lentic.org
-rm lentic-*.org
-rm lenticular.html
-include Makefile-local
.PHONY: test org