1 # file: .../doc/makefile
3 # - build the user documentation, snacc-*.ps
4 # - install the various manual pages
7 # use nroff -man snacc.1 to see what the man page, snacc.1, looks like
9 # if latex bombs unexplainably, try 'make clean' followed by 'make'
11 # $Header: /cvs/Darwin/Security/SecuritySNACCRuntime/doc/makefile,v 1.1.1.1 2001/05/18 23:14:10 mb Exp $
13 # Revision 1.1.1.1 2001/05/18 23:14:10 mb
14 # Move from private repository to open source repository
16 # Revision 1.1.1.1 1999/03/16 18:05:53 aram
17 # Originals from SMIME Free Library.
19 # Revision 1.4 1997/06/19 09:28:30 wan
20 # Disabled making new doc due to new version string.
22 # Revision 1.3 1997/02/16 19:23:13 rj
25 # Revision 1.2 1997/01/02 08:51:51 rj
26 # order of two files reversed to reflect the order in snacc.tex
28 # Revision 1.1 1997/01/01 22:28:25 rj
117 BIB_SRC = snacc.bib corba.bib tcl.bib
133 BOOK.PS = snacc-book.ps
144 #-------------------------------------------------------------------------------
147 #default:: $(A5.PS) $(BOOK.PS)
151 $(BOOK.PS): $(A4.PS) tumble.sed
153 < $< $(PSBOOK) | $(PSNUP) -2 | sed -f tumble.sed > $@~
159 < $< $(PSNUP) -2 > $@~
165 < $< $(PSNUP) -4 > $@~
171 # $(DVIPS) -f $< > $@~
173 # dvips doesn't return a useful return code:
178 $(DVI): $(TEX_SRC) $(BIB_BBL) $(side.cmp) $(EPS)
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\
188 $(MAKE) $(BIB_BBL) $@
190 $(BIB_BBL): $(BIB_SRC) $(side.cmp)
192 if [ -s snacc.aux ]; then $(BIBTEX) `basename $(TEX_ROOT) .tex`; fi
197 version.tex: #$(TOP)/version.h
198 echo '\def\snaccversion{'`sed -e '/VERSION/!d' -e 's/.*"\(.*\)".*/\1/' -e q $?`'}' > $@
203 $(DETEX) $(TEX_ROOT) | $(SPELL) > $@~
207 ln $(TOP)/install-sh $@
210 $(TOP)/mkinstalldirs $@
212 install:: $(MANUALS) install-sh $(man1dir)
215 for man in $(MANUALS.1); do\
216 $(INSTALL_DATA) $$man $(man1dir)/`basename $$man .1`.$(man1ext);\
218 for man in $(MANUALS.n); do\
219 $(INSTALL_DATA) $$man $(man1dir)/`basename $$man .n`.$(mannext);\
223 $(RM) *~ *.dvi *.log *.aux *.toc *.lof *.lot *.bbl *.blg sp_errs .emacs*
230 gen-distfiles:: $(DISTFILES)