diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2003-01-05 13:37:15 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2003-01-05 13:37:15 +0000 |
commit | 742bcd19d14495396810c26db2b11b0d0b91e8f2 (patch) | |
tree | 16a15455a519acc4bd13fe42989df328675c70a2 /mk | |
parent | e3d7f93f0c22cb751e7193d1d0e2a52bccb883dd (diff) | |
download | pkgsrc-742bcd19d14495396810c26db2b11b0d0b91e8f2.tar.gz |
Switch the top level pkgsrc 'readme' and 'cdrom-readme' targets to use the
new and much more efficient code. Previously a 'make readme' took over
3 weeks on my SS5 and now takes < 3 hours. The number of make calls has
been reduced from somewhere over 1,000,000 to one per package which is
around 3,000. The mk/scripts/mkreadme script does all the work now. This
script has been used in standalone form for a month or two on ftp.netbsd.org
and has had no problem.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.subdir.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/bsd.pkg.subdir.mk b/mk/bsd.pkg.subdir.mk index 31bbbfd8c0a..319e3e047b0 100644 --- a/mk/bsd.pkg.subdir.mk +++ b/mk/bsd.pkg.subdir.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.subdir.mk,v 1.49 2002/10/20 22:19:22 wiz Exp $ +# $NetBSD: bsd.pkg.subdir.mk,v 1.50 2003/01/05 13:37:16 dmcmahill Exp $ # Derived from: FreeBSD Id: bsd.port.subdir.mk,v 1.19 1997/03/09 23:10:56 wosch Exp # from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91 # @@ -114,13 +114,13 @@ readmes: readme _SUBDIRUSE .if !target(readme) readme: @if [ -f README.html ]; then ${MV} -f README.html README.html.BAK ; fi - @${MAKE} ${MAKEFLAGS} README.html _README_TYPE=$@ + @${MAKE} ${MAKEFLAGS} README.html _README_TYPE_FLAG=--ftp _README_TYPE=$@ .endif .if !target(cdrom-readme) cdrom-readme: @if [ -f README.html ]; then ${MV} -f README.html README.html.BAK ; fi - @${MAKE} ${MAKEFLAGS} README.html _README_TYPE=$@ + @${MAKE} ${MAKEFLAGS} README.html _README_TYPE_FLAG=--cdrom README_TYPE=$@ .endif .if defined(PKGSRCTOP) @@ -131,6 +131,7 @@ README= ../templates/README.category HTMLIFY= ${SED} -e 's/&/\&/g' -e 's/>/\>/g' -e 's/</\</g' +.if !target(README.html) README.html: .PRECIOUS @> $@.tmp .for entry in ${SUBDIR} @@ -169,6 +170,7 @@ README.html: .PRECIOUS .for subdir in ${SUBDIR} @cd ${subdir} && ${MAKE} ${MAKEFLAGS} "_THISDIR_=${_THISDIR_}${.CURDIR:T}/" ${_README_TYPE} .endfor +.endif show-comment: @if [ "${COMMENT}" ]; then \ |