Change some of the targets to cater for the DocBook Handbook. The

"FORMATS" spec has changed, but the majority of stuff still uses LinuxDoc.
Special case the Handbook where necessary.
This commit is contained in:
Nik Clayton 1999-03-27 15:46:31 +00:00
parent e96eac04d2
commit 2c32476628
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=4573
2 changed files with 22 additions and 10 deletions

View file

@ -1,5 +1,5 @@
# bsd.web.mk
# $Id: web.site.mk,v 1.15 1998-09-13 21:43:20 wosch Exp $
# $Id: web.site.mk,v 1.16 1999-03-27 15:46:31 nik Exp $
#
# Build and install a web site.
@ -156,9 +156,11 @@ realinstall: ${COOKIE} ${GENDOCS} ${DATA} ${LOCAL} ${CGI} _PROGSUBDIR
realinstall2:
.if defined(DOCSUBDIR) && !empty(DOCSUBDIR)
for entry in ${DOCSUBDIR}; do \
(cd ${DOCINSTALLDIR}/$$entry; \
if test -f $$entry.html; then tar czf $$entry-html.tar.gz *.html; fi; \
if test -f $$entry.html; then ln -fs $${entry}.html index.html;fi ) \
if [ $$entry != "handbook" ]; then \
(cd ${DOCINSTALLDIR}/$$entry; \
if test -f $$entry.html; then tar czf $$entry-html.tar.gz *.html; fi; \
if test -f $$entry.html; then ln -fs $${entry}.html index.html;fi ) \
fi; \
done
.endif
@ -185,7 +187,11 @@ _PROGSUBDIR: .USE
@for entry in ${DOCSUBDIR}; do \
(${ECHODIR} "===> ${DIRPRFX}$$entry"; \
cd ${.CURDIR}/$${entry}; \
${MAKE} ${.TARGET:S/realinstall/install/:S/.depend/depend/} DIRPRFX=${DIRPRFX}$$entry/ ${PARAMS}); \
if [ $$entry = "handbook" ]; then \
${MAKE} ${.TARGET:S/realinstall/install/:S/.depend/depend/} DIRPRFX=${DIRPRFX}$$entry/ ${PARAMS} FORMATS="txt html html-split ps"; \
else \
${MAKE} ${.TARGET:S/realinstall/install/:S/.depend/depend/} DIRPRFX=${DIRPRFX}$$entry/ ${PARAMS}; \
fi); \
done
.endif