blob: 79eee7f2b76f22349b4180bba1a27696532c2e3a (
plain)
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
|
#
# Makefile contributed by Steve Rumsby
# and modified by Mark Phillips
#
# Where your TeX input files live
TEXINPUTSDEST = /usr/local/lib/tex/inputs
# Name of your Latex (for documentation)
# Note: this must support NFSS in order for you to latex the manual;
# otherwise print manual.ps
LATEX = latex
# Name of your DVI to PostScript converter, and
# flags needed to process the manual
DRIVER = dvips
DRIVERFLAGS =
# Where it keeps its support files
PSDIR = /usr/local/lib/tex/dvips
# System executable directory
BINDIR = /u/geom/bin
# Directory for Manual pages
MANDIR = /u/geom/man/man1
# Where perl lives
PERL = /usr/local/bin/perl
# Where you want to install the PostScript copy of the manual
# ("manual.ps"). If you don't want to formally install this,
# leave this definition blank.
MANUALDIR = /u/geom/lib/geomsty
# Pathname of directory where you want to install the auxiliary
# programs geomfix and mathlabels. These are used by mathfig.
AUXDIR=/u/geom/lib/geomsty
# If your system doesn't support symbolic links you
# could change this to "cp"
LN = ln -s
# Change this to "install" if you want
CP = /bin/cp
# You shouldn't have to change anything below here
########################################################################
SHELL=/bin/sh
MANUALFILES = manual.ps
all: mathlabels mathfig mathfig.1
install: all
$(CP) *.sty *.chg $(TEXINPUTSDEST)
/bin/rm -f $(TEXINPUTSDEST)/driver.chg
$(LN) $(TEXINPUTSDEST)/$(DRIVER).chg $(TEXINPUTSDEST)/driver.chg
$(CP) mathfig $(BINDIR)
$(CP) mathlabels geomfix $(AUXDIR)
$(CP) math.pro illustrator.pro $(PSDIR)
$(CP) mathfig.1 $(MANDIR)
if [ "${MANUALDIR}" != "" ] ; then /bin/cp ${MANUALFILES} ${MANUALDIR} ; fi
mathlabels: Makefile
/bin/rm -f mathlabels
(echo '#!$(PERL)'; sed 1d mathlabels.orig) > mathlabels
chmod 755 mathlabels
mathfig: Makefile mathfig.orig
/bin/rm -f mathfig
sed -e 's|geomfix=geomfix|geomfix=${AUXDIR}/geomfix|' \
-e 's|mathlabels=mathlabels|mathlabels=${AUXDIR}/mathlabels|' \
< mathfig.orig > mathfig
chmod 755 mathfig
mathfig.1: Makefile mathfig.1.orig
/bin/rm -f mathfig.1
sed -e 's|^geomfix$$|${AUXDIR}/geomfix|' \
-e 's|^mathlabels$$|${AUXDIR}/mathlabels|' \
< mathfig.1.orig > mathfig.1
clean:
/bin/rm -f *~ #*#
distclean: clean
/bin/rm -f *.dvi *.log *.lof *.aux *.bbl *.blg *.idx *.toc \
mathlabels mathfig mathfig.1 geomsty.tar.Z geomsty.shar
manual.dvi: manual.tex manual.bib
${LATEX} manual
bibtex manual
${LATEX} manual
${LATEX} manual
manual.ps: manual.dvi
${DRIVER} ${DRIVERFLAG} manual.dvi
doc: manual.ps
tar: distclean manual.ps
gnutar hcvfZ geomsty.tar.Z -C .. `sed '1,/^\** *CONTENTS/ d' README`
shar: distclean manual.ps
(cd ..; shar -F -L95 -ogeomsty/geomsty.shar `sed '1,/^\** *CONTENTS/ d' README`)
|