This makefile is similar to the individual book makefiles, but its dependencies include all of the doc/i/ input files used in the bookset. It is located at doc/o/cogent-set/Makefile.
# Makefile
#
# This makefile generates HTML and QNX Helpviewer output for the cogent
# book set. In addition to including ../../sgml.mak, it also includes
# a ./copydrivers makefile to preprocess driver files.
GTKDOCS = gtk gdk glib
complete: .complete
copydrivers.sh cf
copydrivers.sh dn
copydrivers.sh pb
copydatahub.sh dhw win d
copydatahub.sh ccw win c
.complete:
touch .complete
.sgml: $(wildcard ../../i/gamma/* ../../i/phgamma/* \
../../i/gtkgamma/* ../../i/sqlgamma/* \
../../i/sstdrivers/*.sgml ../../i/datahubwin/* \
../../i/textlog/*.sgml ../../i/historian/*.sgml \
../../i/common/*.sgml ../../i/gendriver/*.sgml \
../../i/papers/*.sgml ../../i/api/*.sgml \
../../i/database/*.sgml ../../i/cfdriver/*.sgml \
../../i/dndriver/*.sgml ../../i/pbdriver/*.sgml \
../../i/glossary/*.sgml ../../i/tutorial/*.sgml \
../../config/cogent-both.dsl ../../i/newbook/nb_man.sgml) \
complete
# Customize the book set books before calling the main rules
i=../../i/cogent_set
help4::
cp $(i)/extrabooksqnx4.sgml $(i)/extrabooks.sgml
help6::
cp $(i)/extrabooksqnx6.sgml $(i)/extrabooks.sgml
htmlcp::
cp $(i)/extrabooksall.sgml $(i)/extrabooks.sgml
include ../../sgml.mak
# Copy latest versions of gtk, gdk, and glib doc subdirectories
# into help6 subdirectory
help6::
for m in $(GTKDOCS); do \
rm -r -f help6/$$m; \
mkdir -p help6/$$m/; \
cp -r ../../i/gtkgamma/htmldocs/$$m/*.html help6/$$m/; \
done
# Revert back to full book set, and fix QNX toc links.
help4 help6::
cp $(i)/extrabooksall.sgml $(i)/extrabooks.sgml
fixqnxhelplinks ${@}
html: htmlcp
cp $(i)/extrabooksall.sgml $(i)/extrabooks.sgml
for m in $(GTKDOCS); do \
rm -r -f html/$$m; \
mkdir -p html/$$m/; \
cp -r ../../i/gtkgamma/htmldocs/$$m/*.html html/$$m/; \
done
default: html pdf
again: fresh html
Copyright © 1995-2004 by Cogent Real-Time Systems, Inc. All rights reserved.