206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
|
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
#========================================================================
# Your doc target should differentiate from doc builds (by the developer)
# and doc installs (see install-doc), which just install the docs on the
# end user machine when building from source.
#========================================================================
DTPLITE=$(TCLSH) @DTPLITE@
doc:
@echo "If you have documentation to create, place the commands to"
@echo "build the docs in the 'doc:' target. For example:"
@echo " xml2nroff sample.xml > sample.n"
@echo " xml2html sample.xml > sample.html"
doc: make-docs-n make-docs-html
make-docs-n: doc/tls.man
@echo "make nroff documentation"
@if [ -n "$(DTPLITE)" -a -x "$(DTPLITE)" ]; then \
$(DTPLITE) -o doc/tls.n nroff doc/tls.man ; \
fi
make-docs-html: doc/tls.man
@echo "make HTML documentation"
@if [ -n "$(DTPLITE)" -a -x "$(DTPLITE)" ]; then \
$(DTPLITE) -o doc/tls.html html doc/tls.man ; \
fi
make-docs: doc/tls.man
@echo "make documentation"
@if [ -n "$(DTPLITE)" -a -x "$(DTPLITE)" ]; then \
$(DTPLITE) -o doc nroff doc ; \
$(DTPLITE) -o doc html doc ; \
fi
#========================================================================
# Install targets
#========================================================================
install: all install-binaries install-libraries install-doc-n install-doc-html
install-binaries: binaries install-lib-binaries install-bin-binaries
#========================================================================
# This rule installs platform-independent files, such as header files.
|
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
|
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
|
-
+
-
+
|
done
#========================================================================
# Install documentation. Unix manpages should go in the $(mandir)
# directory.
#========================================================================
install-doc-html: doc
install-doc-html: make-docs-html
@$(INSTALL_DATA_DIR) "$(DESTDIR)$(pkglibdir)/html"
@echo "Installing HTML documentation in $(DESTDIR)$(pkglibdir)/html"
@list='doc/*.html'; for i in $$list; do \
if test -f $$i ; then \
echo "Installing $$i"; \
$(INSTALL_DATA) $$i "$(DESTDIR)$(pkglibdir)/html"; \
fi; \
done
install-doc-n: doc
install-doc-n: make-docs-n
@$(INSTALL_DATA_DIR) "$(DESTDIR)$(mandir)/mann"
@echo "Installing nroff documentation in $(DESTDIR)$(mandir)/mann"
@list='doc/*.n'; for i in $$list; do \
if test -f $$i ; then \
if test -f "$(DESTDIR)$(mandir)/mann/Tcl.n.gz" -o \
"$(DESTDIR)$(mandir)/mann/Tcl*.n.gz" ; then \
gzip -k $$i ; \
|