Update to 1.18

This commit is contained in:
Jesus Rodriguez Cuesta 1999-04-10 20:21:50 +00:00
parent f104062c78
commit 0f879bec48
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=4658

View file

@ -1,5 +1,5 @@
# bsd.web.mk
# $Id: web.mk,v 1.1.1.1 1999-02-08 19:26:11 wosch Exp $
# $Id: web.mk,v 1.2 1999-04-10 20:21:50 jesusr Exp $
#
# Build and install a web site.
@ -43,6 +43,11 @@ ORPHANS:= ${DOCS}
COPY= -C
#
# Where the ports live, if CVS isn't used (ie. NOPORTSCVS is defined)
#
PORTSBASE?= /usr
##################################################################
# Transformation rules
@ -156,9 +161,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 +192,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" -a ${WEBDIR} = "data" ]; then \
${MAKE} ${.TARGET:S/realinstall/install/:S/.depend/depend/} DIRPRFX=${DIRPRFX}$$entry/ ${PARAMS} FORMATS="txt html html-split"; \
else \
${MAKE} ${.TARGET:S/realinstall/install/:S/.depend/depend/} DIRPRFX=${DIRPRFX}$$entry/ ${PARAMS}; \
fi); \
done
.endif