File: makefile.dst

package info (click to toggle)
gnuplot 3.7.1p1-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,808 kB
  • ctags: 4,418
  • sloc: ansic: 43,279; lisp: 661; makefile: 647; asm: 539; sh: 416; objc: 379; csh: 297; pascal: 194; perl: 138
file content (204 lines) | stat: -rw-r--r-- 5,238 bytes parent folder | download | duplicates (2)
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
#
# $Id: makefile.dst,v 1.1 1998/11/26 19:06:30 lhecking Exp $
#
#
# Makefile for GNUPLOT documentation
#
# Note that the top-level file for documentation is gnuplot.doc.
# See README.
#
# To print manual:
#    make gnuplot.dvi             (for latex)
#    (print or view gnuplot.dvi)
# OR
#    make gnuplot.nroff           (for nroff)
#    (print or view gnuplot.nroff)
#   or
#    make "TROFF=itroff" troff    (for troff; use your troff here)
#
# $Id: makefile.dst,v 1.1 1998/11/26 19:06:30 lhecking Exp $

# usually overridden by ../Makefile
HELPDEST = /usr/local/lib

# substitute your troff command (and any flags) for this one
TROFF=troff

# substitute cp if you do not have the install program
INSTALL=install

# substitute your DVI to PostScript conversion program here
DVIPS=dvips

# Compiler flags
# -DSYSV if att sys V
# -DMSDOS if MSDOS PS
# -traditional -g -O if gcc (set 'CC = gcc')
# no extra flags for BSD
# HBB: this gets called from the toplevel Makefile, and gets passed some CFLAGS,
#   so I changed this to something completely different:
DOC_CFLAGS = $(CFLAGS) -s -I../ -I../term/
CC = gcc

# Default information
help:
	@echo "Please do a 'make <TARGET>' where <TARGET> is one of" \
                "the following:"
	@echo
	@echo "check        check the gnuplot.doc file"
	@echo "clean        remove all derived files"
	@echo "dvi          DVI files (gnuplot.dvi gpcard.dvi)"
	@echo "gih          Unix and MSDOS help file (gnuplot.gih)"
	@echo "help         make help"
	@echo "hlp          VMS help file (gnuplot.hlp)"
	@echo "html         HyperText Markup language (gnuplot.html)"
	@echo "info         Info documentation (gnuplot.info)"
	@echo "install-unix Unix and MSDOS install"
	@echo "install-vms  VMS install"
	@echo "nroff        nroff documentation (gnuplot.nroff)"
	@echo "ps           PostScript files (gnuplot.ps gpcard.ps)"
	@echo "tex          LaTeX documentation (gnuplot.tex)"
	@echo "troff        troff documentation"
	@echo "tutorial     LaTeX tutorial (latextut/tutorial.dvi)"
	@echo
	@echo "If you are not familiar with makefiles or just want" \
                "to know what"
	@echo "'make <TARGET>' would do without actually doing" \
                "anything, then type"
	@echo "        'make -n <TARGET>'"
	@echo

# default is what is needed for interactive gnuplot
default: gnuplot.hlp gnuplot.gih


# the converters

doc2html : doc2html.c termdoc.c xref.c allterm.h
	$(CC) $(DOC_CFLAGS) -o doc2html doc2html.c termdoc.c xref.c

doc2ms: doc2ms.c termdoc.c allterm.h
	$(CC) $(DOC_CFLAGS) -DALL_TERM_DOC -o doc2ms doc2ms.c termdoc.c

doc2tex: doc2tex.c termdoc.c allterm.h 
	$(CC) $(DOC_CFLAGS) -DALL_TERM_DOC -o doc2tex doc2tex.c termdoc.c

doc2hlp: doc2hlp.c termdoc.c
	$(CC) $(DOC_CFLAGS) -o doc2hlp doc2hlp.c termdoc.c

doc2gih: doc2gih.c termdoc.c
	$(CC) $(DOC_CFLAGS) -o doc2gih doc2gih.c termdoc.c

checkdoc: checkdoc.c termdoc.c allterm.h
	$(CC) $(DOC_CFLAGS) -DALL_TERM_DOC -o checkdoc checkdoc.c termdoc.c


allterm.h:
	@echo Hmm - need to concatenate all .trm files into allterm.h
	@echo should have been done by main makefile

### [tn]roff documentation
troff: gnuplot.ms titlepag.ms
	tbl gnuplot.ms | eqn | $(TROFF) -ms

nroff: gnuplot.nroff

gnuplot.nroff: gnuplot.ms titlepag.ms
	tbl gnuplot.ms | neqn | nroff -ms | col > gnuplot.nroff



ms: gnuplot.ms

gnuplot.ms: doc2ms gnuplot.doc
	./doc2ms gnuplot.doc gnuplot.ms



html: gnuplot.html

gnuplot.html : doc2html gnuplot.doc allterm.h
	./doc2html gnuplot.doc gnuplot.html


### LaTeX documentation

tex: gnuplot.tex

gnuplot.tex: doc2tex gnuplot.doc
	./doc2tex gnuplot.doc gnuplot.tex


# this is how to make DVI files
dvi: gnuplot.dvi gpcard.dvi

gnuplot.dvi: gnuplot.tex titlepag.tex toc_entr.sty
	latex gnuplot
	latex gnuplot

gpcard.dvi: gpcard.tex
	tex gpcard

# this is how to make PostScript files
# if pslatex has been installed, add "times" to titlepage.tex
ps: gnuplot.ps gpcard.ps

gnuplot.ps: gnuplot.dvi
	$(DVIPS) gnuplot

gpcard.ps: gpcard.dvi
	$(DVIPS) gpcard


# this is how to make gnuplot.hlp

hlp: gnuplot.hlp

gnuplot.hlp: doc2hlp gnuplot.doc
	./doc2hlp gnuplot.doc gnuplot.hlp


# this is how to make gnuplot.gih
gih: gnuplot.gih

gnuplot.gih: doc2gih gnuplot.doc
	./doc2gih gnuplot.doc gnuplot.gih


# this is how to make Info documentation
info: gnuplot.info

gnuplot.info: gnuplot.doc
	perl doc2texi.pl gnuplot.doc > gpltinfo.tex
	makeinfo +fill-column 80 gpltinfo.tex
	rm -f gpltinfo.tex

tutorial: latextut/tutorial.tex
	( cd latextut; $(MAKE) )

# this is how to check the gnuplot.doc file
check: checkdoc gnuplot.doc
	./checkdoc < gnuplot.doc


# For Unix and MSDOS only
install-unix: gnuplot.gih
	$(INSTALL) gnuplot.gih $(HELPDEST)

# for VMS only
install-vms: gnuplot.hlp
	$(INSTALL) gnuplot.hlp $(HELPDEST)

# remove all derived files
clean:
	rm -f doc2ms gnuplot.nroff gnuplot.ms \
              allterm.h \
              doc2html gnuplot.html \
              doc2tex gnuplot.tex gnuplot.dvi \
              gnuplot.aux gnuplot.log gnuplot.toc \
              gnuplot.ps gpcard.dvi gpcard.log gpcard.ps \
              doc2hlp gnuplot.hlp \
              doc2gih gnuplot.gih \
              checkdoc *~ *.o core a.out \
              gnuplot.info* gpltinfo.tex
	( cd latextut; $(MAKE) clean )