Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / papers / mh5 / Makefile
1 #######################################################################
2 # Instructions to Make, for generation of nice-looking papers using TeX
3 #######################################################################
4
5 .SUFFIXES:      .pic .web .tex .dvi
6
7 .pic.tex:;      tpic $<
8
9 .web.tex:;      sh -c 'if weave $<; then exit 0; else rm $@; exit 1; fi'
10
11 .tex.dvi:;      sh -c 'if TEXINPUTS=../doclib:.:${TEXINPUTS} tex \
12                         \\nonstopmode\\input $<\\bye; \
13                           then exit 0; else rm $@; exit 1; fi'
14
15
16 #############################################################
17 # Here it is...
18 #############################################################
19
20 all:            i-all
21 print:          i-print
22
23
24 #############################################################
25 # mh5
26 #############################################################
27
28 i-all:          mh5.dvi
29
30 i-print:        mh5.dvi true
31                 dvisp -J mh5 mh5.dvi
32
33 i-count:        true
34                 detex text.tex | wc -cw
35
36
37 # customization files, et. al., not included below
38 mh5.dvi:        version.tex
39
40 version.tex:    mh5.tex text.tex diagram1.tex diagram2.tex refs.tex version.sh
41                 @: version.sh
42
43 true:;
44
45
46
47
48 ##############################################################################
49 #       Miscellaneous tasks
50 ##############################################################################
51
52 distribution:   clean
53                 rm -f mh5.dvi mh5.imp
54
55 clean:;         rm -f CONTENTS.tex FIGURES.tex \
56                         mh5.lof mh5.log mh5.lot mh5.toc _*