1 | DVIPS = dvips |
---|
2 | |
---|
3 | LATEX = latex |
---|
4 | LATEXOUT = dvi |
---|
5 | RESULT = ps |
---|
6 | |
---|
7 | LATEX = pdflatex |
---|
8 | LATEXOUT = pdf |
---|
9 | RESULT = pdf |
---|
10 | |
---|
11 | .SUFFIXES: .tex .dvi .ps .pdf .c .lg .eps .fig .gif .dot .w .cpp .o .exe |
---|
12 | |
---|
13 | .tex.$(LATEXOUT): |
---|
14 | @ if test ! -f $*.ind; then echo "" > $*.ind; fi |
---|
15 | @ $(LATEX) $* |
---|
16 | @ if ( grep 'LaTeX Warning: Label(s) may' $*.log > /dev/null ); \ |
---|
17 | then $(LATEX) $* ; fi |
---|
18 | @ if ( grep 'LaTeX Warning: Citation' $*.log > /dev/null ); \ |
---|
19 | then bibtex $* ; $(LATEX) $* ; fi |
---|
20 | @ if ( grep 'LaTeX Warning: Label(s) may' $*.log > /dev/null ); \ |
---|
21 | then $(LATEX) $* ; fi |
---|
22 | @ if ( grep 'LaTeX Warning: Label(s) may' $*.log > /dev/null ); \ |
---|
23 | then $(LATEX) $* ; fi |
---|
24 | @ if ( grep 'Writing index file' $*.log > /dev/null ); \ |
---|
25 | then makeindex $* ; $(LATEX) $* ; fi |
---|
26 | @ if ( grep 'LaTeX Warning: Label(s) may' $*.log > /dev/null ); \ |
---|
27 | then $(LATEX) $* ; fi |
---|
28 | @ if ( grep 'LaTeX Warning: Label(s) may' $*.log > /dev/null ); \ |
---|
29 | then $(LATEX) $* ; fi |
---|
30 | |
---|
31 | .dvi.ps: |
---|
32 | $(DVIPS) -t letter -o $*.ps $* |
---|
33 | |
---|
34 | .eps.pdf: |
---|
35 | epstopdf $*.eps |
---|
36 | |
---|
37 | .dot.eps: |
---|
38 | dot -Tps -o $*.eps $*.dot |
---|
39 | |
---|
40 | .w.tex: /afs/nd.edu/user11/jsiek/.jweb |
---|
41 | jweb -np $*.w |
---|
42 | |
---|
43 | BOOST = $(HOME)/boost |
---|
44 | BOOST_ALGO = $(HOME)/boost.algorithm |
---|
45 | CXX = c++ |
---|
46 | INCLUDES = -I$(BOOST) -I$(BOOST_ALGO) |
---|
47 | #OPT = +K2 --display_error_number --diag_suppress=186 |
---|
48 | OPT = -Wall -Wno-long-double -ftemplate-depth-30 |
---|
49 | CXXFLAGS = $(OPT) $(INCLUDES) |
---|
50 | |
---|
51 | .cpp.o: |
---|
52 | $(CXX) $(CXXFLAGS) $< -c |
---|
53 | |
---|
54 | |
---|
55 | JWEB = isomorphism-impl.w isomorphism-impl-v3.w |
---|
56 | DOT = out.dot in.dot iso-eg.dot iso-eg2.dot |
---|
57 | EPS_GEN = $(DOT:.dot=.eps) |
---|
58 | WEBTEX = $(JWEB:.w=.tex) |
---|
59 | PDFPICT = $(EPS_GEN:.eps=.pdf) |
---|
60 | |
---|
61 | default: isomorphism-impl-v3.$(RESULT) |
---|
62 | |
---|
63 | final: isomorphism-impl-v3.$(RESULT) |
---|
64 | $(LATEX) isomorphism-impl-v3 |
---|
65 | csh ./mungeaux.csh *.aux |
---|
66 | $(LATEX) isomorphism-impl-v3 |
---|
67 | |
---|
68 | #isomorphism-impl.dvi: $(EPS_GEN) $(WEBTEX) |
---|
69 | #isomorphism-impl.ps: isomorphism-impl.dvi |
---|
70 | #isomorphism-impl.pdf: $(EPS_GEN) $(PDFPICT) $(WEBTEX) |
---|
71 | #isomorphism.hpp: isomorphism-impl.w isomorphism-impl.tex |
---|
72 | |
---|
73 | isomorphism-impl-v3.dvi: $(DOT) $(EPS_GEN) $(WEBTEX) |
---|
74 | isomorphism-impl-v3.ps: isomorphism-impl-v3.dvi |
---|
75 | isomorphism-impl-v3.pdf: $(EPS_GEN) $(PDFPICT) $(WEBTEX) |
---|
76 | |
---|
77 | isomorphism-v3.hpp: isomorphism-impl-v3.w isomorphism-impl-v3.tex |
---|
78 | |
---|
79 | out.dot: isomorphism-impl.tex |
---|
80 | in.dot: isomorphism-impl.tex |
---|
81 | |
---|
82 | isomorphism.o: isomorphism-v3.hpp isomorphism-impl-v3.w |
---|
83 | |
---|
84 | isomorphism: isomorphism.o |
---|
85 | $(CXX) $(CXXFLAGS) $< -o $@ $(LIBS) |
---|
86 | |
---|
87 | isomorphism-v3.hpp: isomorphism-impl-v3.tex isomorphism-impl-v3.w |
---|
88 | eg1-iso.o: isomorphism-impl-v3.tex isomorphism-impl-v3.w |
---|
89 | |
---|
90 | eg1-iso: eg1-iso.o |
---|
91 | $(CXX) $(CXXFLAGS) $< -o $@ $(LIBS) |
---|
92 | |
---|
93 | |
---|
94 | clean: |
---|
95 | rm *.aux *.dvi $(EPS_GEN) $(PDFPICT) |
---|