Try to solve a chicken-egg problem:
Makefile first includes Makefile.gen and then regenerate Makefile.gen - but it don't read Makefile.gen again. If the contents of the old and the new Makefile.gen differs make may fail. This happens if a category disappeared from INDEX (e.g. a typo in CATEGORY variable). The Makefile try to build the old category.sgml file which is no longer available.
This commit is contained in:
parent
d2b5a9ba53
commit
f32bd3a3f0
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=4892
3 changed files with 45 additions and 18 deletions
|
@ -1,26 +1,12 @@
|
|||
# $Id: Makefile,v 1.23 1999-05-13 11:53:27 wosch Exp $
|
||||
# $Id: Makefile,v 1.24 1999-05-15 10:16:06 wosch Exp $
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
.endif
|
||||
|
||||
PORTINDEX= perl5 ${.CURDIR}/portindex
|
||||
INDEX= INDEX
|
||||
PINDEX= ports/${INDEX}
|
||||
Y2K= YEAR2000
|
||||
PY2K= ports/${Y2K}
|
||||
|
||||
COOKIE= ${INDEX} Makefile.gen
|
||||
|
||||
.if exists(Makefile.gen)
|
||||
.include "Makefile.gen"
|
||||
.if exists(Makefile.inc)
|
||||
.include "Makefile.inc"
|
||||
.endif
|
||||
CLEANFILES+= ${DOCS} Makefile.gen ${INDEX} ${Y2K} packages.exists
|
||||
CLEANFILES+= packages.exists.temp
|
||||
|
||||
cvsindex= $${CVSROOT}/${PINDEX},v
|
||||
cvsy2k= $${CVSROOT}/${PY2K},v
|
||||
_ALLINSTALL= packages.exists ${INDEX} ${Y2K}
|
||||
|
||||
.if defined(NOPORTSCVS)
|
||||
${INDEX}: $${PORTSBASE}/${PINDEX}
|
||||
|
@ -59,10 +45,15 @@ packages.exists: ${cvsindex} ${cvsy2k}
|
|||
|
||||
Makefile.gen: index.sgml .NOTMAIN
|
||||
echo DOCS= *.sgml > Makefile.gen
|
||||
${MAKE} ${MAKEFLAGS} ${.IMPSRC}
|
||||
|
||||
index.sgml: ${INDEX} ${Y2K} packages.exists portindex ports.inc .NOTMAIN
|
||||
rm -f *.sgml
|
||||
${PORTINDEX} ${INDEX} ${Y2K}
|
||||
|
||||
install: all
|
||||
|
||||
all install clean:
|
||||
${MAKE} ${MAKEFLAGS} -f Makefile.inc0 ${.TARGET}
|
||||
|
||||
|
||||
.include "../web.mk"
|
||||
|
|
20
en/ports/Makefile.inc
Normal file
20
en/ports/Makefile.inc
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
PORTINDEX= perl5 ${.CURDIR}/portindex
|
||||
INDEX= INDEX
|
||||
PINDEX= ports/${INDEX}
|
||||
Y2K= YEAR2000
|
||||
PY2K= ports/${Y2K}
|
||||
|
||||
COOKIE= ${INDEX} Makefile.gen
|
||||
|
||||
CLEANFILES+= ${INDEX}
|
||||
CLEANFILES+= ${Y2K}
|
||||
CLEANFILES+= packages.exists.temp packages.exists
|
||||
CLEANFILES+= ${DOCS}
|
||||
CLEANFILES+= Makefile.gen
|
||||
|
||||
cvsindex= $${CVSROOT}/${PINDEX},v
|
||||
cvsy2k= $${CVSROOT}/${PY2K},v
|
||||
|
||||
_ALLINSTALL= packages.exists ${INDEX} ${Y2K}
|
||||
|
16
en/ports/Makefile.inc0
Normal file
16
en/ports/Makefile.inc0
Normal file
|
@ -0,0 +1,16 @@
|
|||
# $Id: Makefile.inc0,v 1.1 1999-05-15 10:16:06 wosch Exp $
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
.endif
|
||||
|
||||
.if exists(Makefile.inc)
|
||||
.include "Makefile.inc"
|
||||
.endif
|
||||
|
||||
.if exists(Makefile.gen)
|
||||
.include "Makefile.gen"
|
||||
.endif
|
||||
|
||||
|
||||
.include "../web.mk"
|
Loading…
Reference in a new issue