-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
58 lines (41 loc) · 1.41 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
# Makefile for tinykactl.tex, the KTH ACM Contest Template Tinykactlrary document
BASEDIR=$(PWD)
INTERMED= \
tinykactl.aux tinykactl.dvi tinykactl.idx tinykactl.ilg tinykactl.ind \
tinykactl.log tinykactl.lol tinykactl.lop tinykactl.toc
.PHONY: \
all always clean spotless index ps pdf \
tinykactl.ps tinykactl.pdf tinykactltex util allcode allcodeclean
all:
# Try 'make ps' or 'make pdf'!
# These will always run latex or pdflatex, so that the index and ToC
# may be fully generated. 'make clean' or 'make spotless' tidies up.
always: .
spotless: clean
$(MAKE) spotless -C util BASEDIR=$(BASEDIR)
rm -f tinykactl.pdf tinykactl.ps version tag
index:
touch tinykactl.idx
makeindex tinykactl.idx
getversion:
# bk changes | head -1 | cut -d @ -f2 | cut -d ' ' -f1,2 > version
# bk changes | head -5 | grep TAG | head -1 | cut -f 4- -d ' ' > tag
date +%Y-%m-%d > version
ps: tinykactl.ps index always
pdf: tinykactl.pdf index always
pdfx3: tinykactl.pdfx3 index always
tinykactl.ps: tinykactltex always
latex tinykactl.tex
dvips -o tinykactl.ps tinykactl.dvi
tinykactl.pdf: tinykactltex always
pdflatex tinykactl.tex
tinykactl.pdfx3: tinykactl.pdf
pdflatex tinykactl.tex
makeindex tinykactl.idx
pdflatex tinykactl.tex
tinykactltex: getversion tinykactl.tex kactl.sty lgrind.sty pdflscape.sty util code
util: always
$(MAKE) util -C util BASEDIR=$(BASEDIR)
LGSTRIP=header
SUMSTRIP=header
include $(BASEDIR)/Makefile.inc