]>
Commit | Line | Data |
---|---|---|
bac41a7b A |
1 | # file: .../doc/makefile |
2 | # | |
3 | # - build the user documentation, snacc-*.ps | |
4 | # - install the various manual pages | |
5 | # | |
6 | # MS 92 | |
7 | # use nroff -man snacc.1 to see what the man page, snacc.1, looks like | |
8 | # | |
9 | # if latex bombs unexplainably, try 'make clean' followed by 'make' | |
10 | # | |
5a719ac8 | 11 | # $Header: /cvs/Darwin/src/live/Security/SecuritySNACCRuntime/doc/makefile,v 1.1.1.1 2001/05/18 23:14:10 mb Exp $ |
bac41a7b A |
12 | # $Log: makefile,v $ |
13 | # Revision 1.1.1.1 2001/05/18 23:14:10 mb | |
14 | # Move from private repository to open source repository | |
15 | # | |
16 | # Revision 1.1.1.1 1999/03/16 18:05:53 aram | |
17 | # Originals from SMIME Free Library. | |
18 | # | |
19 | # Revision 1.4 1997/06/19 09:28:30 wan | |
20 | # Disabled making new doc due to new version string. | |
21 | # | |
22 | # Revision 1.3 1997/02/16 19:23:13 rj | |
23 | # typo fixed | |
24 | # | |
25 | # Revision 1.2 1997/01/02 08:51:51 rj | |
26 | # order of two files reversed to reflect the order in snacc.tex | |
27 | # | |
28 | # Revision 1.1 1997/01/01 22:28:25 rj | |
29 | # first check-in | |
30 | # | |
31 | ||
32 | include ../makehead | |
33 | ||
34 | TOP = .. | |
35 | ||
36 | MANUALS.1 = \ | |
37 | snacc.1 \ | |
38 | mkchdr.1 \ | |
39 | ptbl.1 \ | |
40 | pval.1 \ | |
41 | snacced.1 | |
42 | ||
43 | MANUALS.n = \ | |
44 | snacc.n | |
45 | ||
46 | TEX_ROOT = snacc.tex | |
47 | ||
48 | TEX_SRC = \ | |
49 | $(TEX_ROOT) \ | |
50 | misc-hyph.tex \ | |
51 | version.tex \ | |
52 | intro-1.2.tex \ | |
53 | intro-1.1.tex \ | |
54 | design.tex \ | |
55 | c-gen.tex \ | |
56 | c-lib.tex \ | |
57 | c++-gen.tex \ | |
58 | c++-lib.tex \ | |
59 | meta.tex \ | |
60 | tcl.tex \ | |
61 | editor.tex \ | |
62 | idl-gen.tex \ | |
63 | ttab.tex \ | |
64 | modifying.tex \ | |
65 | future-work.tex \ | |
66 | asn1-defs.tex \ | |
67 | coding.tex \ | |
68 | makefile.tex | |
69 | ||
70 | AUX = \ | |
71 | snacc.aux \ | |
72 | version.aux \ | |
73 | intro-1.1.aux \ | |
74 | intro-1.2.aux \ | |
75 | design.aux \ | |
76 | c-gen.aux \ | |
77 | c-lib.aux \ | |
78 | c++-gen.aux \ | |
79 | c++-lib.aux \ | |
80 | meta.aux \ | |
81 | tcl.aux \ | |
82 | editor.aux \ | |
83 | idl-gen.aux \ | |
84 | ttab.aux \ | |
85 | modifying.aux \ | |
86 | future-work.aux \ | |
87 | asn1-defs.aux \ | |
88 | coding.aux \ | |
89 | makefile.aux | |
90 | ||
91 | side = \ | |
92 | $(AUX) \ | |
93 | snacc.toc | |
94 | ||
95 | side.cmp = \ | |
96 | snacc.aux~ \ | |
97 | version.aux~ \ | |
98 | intro-1.1.aux~ \ | |
99 | intro-1.2.aux~ \ | |
100 | design.aux~ \ | |
101 | c-gen.aux~ \ | |
102 | c-lib.aux~ \ | |
103 | c++-gen.aux~ \ | |
104 | c++-lib.aux~ \ | |
105 | meta.aux~ \ | |
106 | tcl.aux~ \ | |
107 | editor.aux~ \ | |
108 | idl-gen.aux~ \ | |
109 | ttab.aux~ \ | |
110 | modifying.aux~ \ | |
111 | future-work.aux~\ | |
112 | asn1-defs.aux~ \ | |
113 | coding.aux~ \ | |
114 | makefile.aux~ \ | |
115 | snacc.toc~ | |
116 | ||
117 | BIB_SRC = snacc.bib corba.bib tcl.bib | |
118 | BIB_BBL = snacc.bbl | |
119 | ||
120 | EPS = \ | |
121 | example.eps \ | |
122 | recur.eps \ | |
123 | selbox.eps \ | |
124 | simple.eps \ | |
125 | struct.eps \ | |
126 | str-popup.eps \ | |
127 | list-popup.eps \ | |
128 | ||
129 | DVI = snacc.dvi | |
130 | A4.PS = snacc-a4.ps | |
131 | A5.PS = snacc-a5.ps | |
132 | A6.PS = snacc-a6.ps | |
133 | BOOK.PS = snacc-book.ps | |
134 | ||
135 | DISTFILES = \ | |
136 | makefile \ | |
137 | tumble.sed \ | |
138 | $(MANUALS.1) \ | |
139 | $(MANUALS.n) \ | |
140 | $(TEX_SRC) \ | |
141 | $(BIB_SRC) \ | |
142 | $(A5.PS) | |
143 | ||
144 | #------------------------------------------------------------------------------- | |
145 | ||
146 | default:: a4 | |
147 | #default:: $(A5.PS) $(BOOK.PS) | |
148 | all:: a4 a5 a6 book | |
149 | ||
150 | book:: $(BOOK.PS) | |
151 | $(BOOK.PS): $(A4.PS) tumble.sed | |
152 | $(REASON) | |
153 | < $< $(PSBOOK) | $(PSNUP) -2 | sed -f tumble.sed > $@~ | |
154 | mv $@~ $@ | |
155 | ||
156 | a5:: $(A5.PS) | |
157 | $(A5.PS): $(A4.PS) | |
158 | $(REASON) | |
159 | < $< $(PSNUP) -2 > $@~ | |
160 | mv $@~ $@ | |
161 | ||
162 | a6:: $(A6.PS) | |
163 | $(A6.PS): $(A4.PS) | |
164 | $(REASON) | |
165 | < $< $(PSNUP) -4 > $@~ | |
166 | mv $@~ $@ | |
167 | ||
168 | a4:: $(A4.PS) | |
169 | $(A4.PS): $(DVI) | |
170 | $(REASON) | |
171 | # $(DVIPS) -f $< > $@~ | |
172 | # mv $@~ $@ | |
173 | # dvips doesn't return a useful return code: | |
174 | $(DVIPS) -f $< > $@ | |
175 | # $(PSPREVIEW) $@ | |
176 | ||
177 | dvi:: $(DVI) | |
178 | $(DVI): $(TEX_SRC) $(BIB_BBL) $(side.cmp) $(EPS) | |
179 | $(REASON) | |
180 | trap "$(RM) $@ `basename $(TEX_ROOT) .tex`.aux" 2; $(LATEX) $(TEX_ROOT) || { e=$$?; $(RM) $@ `basename $(TEX_ROOT) .tex`.aux; exit $$e; } | |
181 | for f in $(side); do\ | |
182 | if cmp $$f $$f~; then\ | |
183 | :;\ | |
184 | else\ | |
185 | cp $$f $$f~;\ | |
186 | fi;\ | |
187 | done | |
188 | $(MAKE) $(BIB_BBL) $@ | |
189 | ||
190 | $(BIB_BBL): $(BIB_SRC) $(side.cmp) | |
191 | $(REASON) | |
192 | if [ -s snacc.aux ]; then $(BIBTEX) `basename $(TEX_ROOT) .tex`; fi | |
193 | ||
194 | $(side.cmp) redo: | |
195 | touch $@ | |
196 | ||
197 | version.tex: #$(TOP)/version.h | |
198 | echo '\def\snaccversion{'`sed -e '/VERSION/!d' -e 's/.*"\(.*\)".*/\1/' -e q $?`'}' > $@ | |
199 | ||
200 | spell:: sp_errs | |
201 | sp_errs: $(TEX_SRC) | |
202 | $(REASON) | |
203 | $(DETEX) $(TEX_ROOT) | $(SPELL) > $@~ | |
204 | mv $@~ $@ | |
205 | ||
206 | install-sh: | |
207 | ln $(TOP)/install-sh $@ | |
208 | ||
209 | $(man1dir): | |
210 | $(TOP)/mkinstalldirs $@ | |
211 | ||
212 | install:: $(MANUALS) install-sh $(man1dir) | |
213 | ||
214 | install:: | |
215 | for man in $(MANUALS.1); do\ | |
216 | $(INSTALL_DATA) $$man $(man1dir)/`basename $$man .1`.$(man1ext);\ | |
217 | done | |
218 | for man in $(MANUALS.n); do\ | |
219 | $(INSTALL_DATA) $$man $(man1dir)/`basename $$man .n`.$(mannext);\ | |
220 | done | |
221 | ||
222 | clean:: | |
223 | $(RM) *~ *.dvi *.log *.aux *.toc *.lof *.lot *.bbl *.blg sp_errs .emacs* | |
224 | ||
225 | clobber:: clean | |
226 | ||
227 | clobber:: | |
228 | $(RM) *.ps | |
229 | ||
230 | gen-distfiles:: $(DISTFILES) | |
231 | ||
232 | distfiles:: | |
233 | echo $(DISTFILES) | |
234 | ||
235 | # dummy: | |
236 | depend:: | |
237 | @true |