-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
126 lines (86 loc) · 2.28 KB
/
Makefile
File metadata and controls
126 lines (86 loc) · 2.28 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
### -*- mode: makefile -*-
### Makefile
# -------------------------------------------------------------------
CHAPTER_FILES = chapter-overview.tex \
chapter-synopsis.tex \
chapter-infrastructure.tex \
chapter-tap.tex \
chapter-testsuites.tex \
chapter-preconditions.tex \
chapter-commandline.tex \
chapter-webgui.tex \
chapter-reports-api.tex \
chapter-usecases.tex \
chapter-hacking.tex
EXTRA_FILES = $(shell find . -mindepth 2 -exec echo "{}" \; | grep -v "\.svn\/" | grep -v "\.git\/" | grep -v "\/\.svn$$" | grep -v "\/\.git$$" )
LOGO_FILES = LOGOS/tapper-frontpage.eps
TITLE = tapper-manual
VERSION = 4.0
MAIN = tapper
STYLES = tapper.sty
CLEANFILES = $(addprefix $(MAIN).,aux toc log ind ilg idx) \
$(TGZTARGET) \
$(ZIPTARGET) \
$(CHAPTER_FILES)
MAINTAINERCLEANFILES = $(MAIN).pdf $(MAIN).dvi $(MAIN).ps
MAINFILES = Makefile \
$(MAIN).ist \
$(EXTRA_FILES) \
$(STYLES) \
$(MAIN).tex \
$(LOGO_FILES) \
$(CHAPTER_FILES) \
$(PNG_AUTHOR_FILES)
DOCFILES = README
TMPBASE = tmpdistaffezomtec
TMPSUBDIR = $(TITLE)-$(VERSION)
TMPDIR = $(TMPBASE)/$(TMPSUBDIR)
# commands
MAKEINDEX = makeindex -s $(MAIN).ist
# PerlPoint stuff
# CONVERT=PLEASE_CONFIGURE_MAKEFILE_FIRST
CONVERT = convert
# local targets
# ps pdf
all-local: pdf dvi
clean:
rm -f $(CLEANFILES)
mrproper: clean
rm -f $(MAINTAINERCLEANFILES)
pdf: $(MAIN).pdf
dvi: $(MAIN).dvi
ps: $(MAIN).ps
# XXX needed?
bb:
ebb *png *jpg 2>/dev/null
# implicit rules
PFEIFFER/%.eps: PFEIFFER/%.png
convert $< $@
%.eps: %.png
convert $< $@
%.eps: %.jpg
convert $< $@
%.eps: %.gif
convert $< $@
%.eps: %.tif
convert $< $@
%.pdf: %.dvi
dvipdfm $<
%.ps: %.dvi
dvips $<
%.zip: %.dvi
zip $(MAIN).zip $(MAIN).pdf
%.dvi: %.tex
latex $<
$(MAKEINDEX) $(MAIN).idx
latex $<
latex $<
%.tex: %.pod
pod2latex $<
perl -pni -e 's,^\\subsection\*,\\subsection,g' $@
perl -pni -e 's,^\\subsubsection\*,\\subsubsection,g' $@
# dependencies
$(MAIN).ps: $(MAIN).dvi
$(MAIN).pdf: $(MAIN).dvi
$(MAIN).dvi: $(MAINFILES)
### Makefile ends here