-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
60 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
CASK=cask
ifdef EMACS
EMACS_ENV=EMACS=$(EMACS)
endif
CASKRUN=$(EMACS_ENV) $(CASK) emacs --debug --script
WING=$(CASKRUN) script/build.el --
all: gen-src test publish
light-all: gen-src test
cd latex;$(PDFLATEX) take_wing.tex
viewing: gen-src test tex
really-all: install all
install:
$(EMACS_ENV) $(CASK) install
## at the moment, this breaks where
gen-src: install
$(EMACS_ENV) $(CASK) emacs --version
$(WING) gen-src
test: gen-src
lein test
PDFLATEX=pdflatex -interaction=nonstopmode
pdf: gen-src
cd latex;$(PDFLATEX) take_wing.tex;$(PDFLATEX) take_wing.tex
html: gen-html
gen-html:
cd latex;htlatex "take_wing" "cf,fn-in" "" "" "-interaction=nonstopmode"
fixup-html:
$(CASKRUN) script/fixup.el
publish: pdf html fixup-html
clean:
# There really has to be a better way than this!
- find latex -not -name "*tex" -not -name ".gitignore" \
-not -name "cf.cfg" -not -name "*css" -not -name "*js" \
-not -name "Makefile" -not -name ".dir-locals.el" \
-not -name "*org" -not -name "*sty" \
-not -name "*.png" \
-print -exec rm {} \;
- rm latex/take_wing.css
- rm latex/_region_*
- rm latex/_buffer_*
- rm src/take/wing/*clj
-include Makefile-local
.PHONY: test build tex