-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (48 loc) · 941 Bytes
/
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
DOC = ntheorem-doc-vn
SRC = ntheorem-doc-vn-src
VERSION = `gawk -F '=' '{print $$2}' $(DOC).ktvnum`
default:
@echo x
latex:
@latex -src-specials $(DOC)
clean:
@clean
@0texclean
@rm -fv *.thm
index:
@sed -e 's/|usage//g' $(DOC).idx > $(DOC).jdx
@makeindex -s gind.ist -o $(DOC).ind $(DOC).jdx
doc: $(DOC)
$(DOC):
@rm -fv printctl.tex
@latex $@
@latex $@
@sed -e 's/|usage//g' [email protected] > [email protected]
@makeindex -s gind.ist -o [email protected] [email protected]
@latex $@
@ps2pdf [email protected]
ps:
@dvips $(DOC).dvi
pdf:
@ps2pdf $(DOC).ps
pdflatex:
@pdflatex $(DOC)
dist:
@mkdir -p {src,distro}
@rm -fv src/*
@rm -f distro/*$(VERSION).*
@cp *.tex TODO README.src Makefile src/
@zip -9r distro/$(DOC)-$(VERSION).zip \
README FILELIST COPYING \
$(DOC).pdf \
test.tex \
test.pdf \
src/* \
-x src/test.tex
@unzip -t distro/$(DOC)-$(VERSION).zip
example:
@latex test
@latex test
@dvips test.dvi
@ps2pdf test.ps