Extract YEAR2000 and WWW_SITE as part of portindex 'make'...

This commit is contained in:
Marc G. Fournier 1999-03-11 19:42:24 +00:00
parent 685cac2843
commit 677e582e58
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=4506

View file

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.16 1998-08-25 00:00:34 wosch Exp $
# $Id: Makefile,v 1.17 1999-03-11 19:42:24 scrappy Exp $
.if exists(../Makefile.conf)
.include "../Makefile.conf"
@ -7,25 +7,37 @@
PORTINDEX= perl ${.CURDIR}/portindex
INDEX= INDEX
PINDEX= ports/${INDEX}
Y2K= YEAR2000
PY2K= ports/${Y2K}
WWW= WWW_SITE
PWWW= ports/${WWW}
COOKIE= ${INDEX} Makefile.gen
.if exists(Makefile.gen)
.include "Makefile.gen"
.endif
CLEANFILES+= ${DOCS} Makefile.gen ${INDEX} packages.exists
CLEANFILES+= ${DOCS} Makefile.gen ${INDEX} ${Y2K} ${WWW} packages.exists
cvsindex= $${CVSROOT}/${PINDEX},v
_ALLINSTALL= packages.exists ${INDEX}
cvsy2k= $${CVSROOT}/${PY2K},v
cvswww= $${CVSROOT}/${PWWW},v
_ALLINSTALL= packages.exists ${INDEX} ${Y2K} ${WWW}
${INDEX}: ${cvsindex}
cvs -QR co -p ${PINDEX} > ${INDEX}
${Y2K}: ${cvsy2k}
cvs -QR co -p ${PY2K} > ${Y2K}
${WWW}: ${cvswww}
cvs -QR co -p ${PWWW} > ${WWW}
# build the list of available packages only on the
# main FreeBSD machines
hostname!= hostname
packages.exists: ${cvsindex}
packages.exists: ${cvsindex} ${cvsy2k} ${cvswww}
.if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org"
sh ${.CURDIR}/packages > ${.TARGET}
.else
@ -36,7 +48,7 @@ Makefile.gen: index.sgml .NOTMAIN
echo DOCS= *.sgml > Makefile.gen
${MAKE} ${MAKEFLAGS} ${.IMPSRC}
index.sgml: ${INDEX} packages.exists portindex ports.inc .NOTMAIN
index.sgml: ${INDEX} ${Y2K} ${WWW} packages.exists portindex ports.inc .NOTMAIN
rm -f *.sgml
${PORTINDEX} ${INDEX}