-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
69 lines (58 loc) · 1.67 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
66
67
68
CLEAN := \
luatodonotes.log \
luatodonotes.aux \
luatodonotes.tdo \
luatodonotes.out \
luatodonotes.idx \
luatodonotes.glo \
luatodonotes.gls \
luatodonotes.ilg \
luatodonotes.ind \
luatodonotes.toc \
luatodonotes.upa \
luatodonotes.upb \
luatodonotes.fls \
luatodonotes.fdb_latexmk \
luatodonotes.synctex.gz
DISTCLEAN := \
luatodonotes.sty \
luatodonotes.pdf \
luatodonotes.zip
default: luatodonotes.pdf luatodonotes.tar.gz
luatodonotes.pdf: luatodonotes.sty luatodonotes.dtx
lualatex luatodonotes.dtx
makeindex -s gglo.ist -o luatodonotes.gls luatodonotes.glo
makeindex -s gind.ist -o luatodonotes.ind luatodonotes.idx
lualatex luatodonotes.dtx
lualatex luatodonotes.dtx
luatodonotes.tar.gz: luatodonotes.pdf luatodonotes.dtx luatodonotes.ins
rm -rf luatodonotes
mkdir luatodonotes
cp luatodonotes.ins luatodonotes/luatodonotes.ins
cp luatodonotes.dtx luatodonotes/luatodonotes.dtx
cp luatodonotes.pdf luatodonotes/luatodonotes.pdf
cp luatodonotes.lua luatodonotes/luatodonotes.lua
cp path_line.lua luatodonotes/path_line.lua
cp path_point.lua luatodonotes/path_point.lua
cp inspect.lua luatodonotes/inspect.lua
cp README.md luatodonotes/README.md
chmod a+r -R luatodonotes
chmod a+x luatodonotes
tar -cf luatodonotes.tar.gz luatodonotes
luatodonotes.sty: luatodonotes.ins luatodonotes.dtx
rm -f luatodonotes.sty
pdflatex luatodonotes.ins
luatodonotes.gls: luatodonotes.glo
#testexample: \
#todonotes.sty
#pdflatex todonotesexample.tex
#okular todonotesexample.pdf
.PHONY: clean
clean:
@rm -f $(CLEAN)
.PHONY: distclean
distclean: clean
@rm -f $(DISTCLEAN)
.PHONY: latexmkpvc
latexmkpvc: luatodonotes.sty
latexmk -pvc -pdf -r dtxmkrc luatodonotes.dtx