diff options
author | rillig <rillig@pkgsrc.org> | 2007-08-13 08:12:41 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-08-13 08:12:41 +0000 |
commit | 6aecf486994907049445b18ec6ce6d8fb286a0a2 (patch) | |
tree | 12e2fec085cd6d8b010cdb86d590de83380a6111 /mk/bsd.pkg.subdir.mk | |
parent | 0505043778dd7ea14cb5f13aa34957a9611ac6cb (diff) | |
download | pkgsrc-6aecf486994907049445b18ec6ce6d8fb286a0a2.tar.gz |
Added mk/misc/category.mk, which contains the definitions that are only
useful for category Makefiles, as opposed to bsd.pkg.subdir.mk, which is
also relevant for the top-level directory. Adjusted the category Makefiles.
Diffstat (limited to 'mk/bsd.pkg.subdir.mk')
-rw-r--r-- | mk/bsd.pkg.subdir.mk | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/mk/bsd.pkg.subdir.mk b/mk/bsd.pkg.subdir.mk index 4c599beee4a..99ef3b30a48 100644 --- a/mk/bsd.pkg.subdir.mk +++ b/mk/bsd.pkg.subdir.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.subdir.mk,v 1.67 2007/08/13 06:03:46 rillig Exp $ +# $NetBSD: bsd.pkg.subdir.mk,v 1.68 2007/08/13 08:12:51 rillig 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 # @@ -121,46 +121,6 @@ README= ../templates/README.category HTMLIFY= ${SED} -e 's/&/\&/g' -e 's/>/\>/g' -e 's/</\</g' -.if !target(README.html) -.PHONY: README.html -README.html: .PRECIOUS - @> $@.tmp -.for entry in ${SUBDIR} -.if defined(PKGSRCTOP) - @${ECHO} '<TR><TD VALIGN=TOP><a href="'${entry}/README.html'">'"`${ECHO} ${entry} | ${HTMLIFY}`"'</a>: <TD>' >> $@.tmp - @${ECHO} `cd ${entry} && ${RECURSIVE_MAKE} ${MAKEFLAGS} show-comment | ${HTMLIFY}` >> $@.tmp -.else - @${ECHO} '<TR><TD VALIGN=TOP><a href="'${entry}/README.html'">'"`cd ${entry}; ${RECURSIVE_MAKE} ${MAKEFLAGS} make-readme-html-help`" >> $@.tmp -.endif -.endfor - @${SORT} -t '>' +3 -4 $@.tmp > $@.tmp2 - @${AWK} '{ ++n } END { print n }' < $@.tmp2 > $@.tmp4 -.if exists(${.CURDIR}/DESCR) - @${HTMLIFY} ${.CURDIR}/DESCR > $@.tmp3 -.else - @> $@.tmp3 -.endif - @${CAT} ${README} | \ - ${SED} -e 's/%%CATEGORY%%/'"`${BASENAME} ${.CURDIR}`"'/g' \ - -e '/%%NUMITEMS%%/r$@.tmp4' \ - -e '/%%NUMITEMS%%/d' \ - -e '/%%DESCR%%/r$@.tmp3' \ - -e '/%%DESCR%%/d' \ - -e '/%%SUBDIR%%/r$@.tmp2' \ - -e '/%%SUBDIR%%/d' \ - > $@.tmp5 - @if [ -f $@ ] && ${CMP} -s $@.tmp5 $@ ; then \ - ${RM} $@.tmp5 ; \ - else \ - ${ECHO_MSG} "===> Creating README.html for ${_THISDIR_}${.CURDIR:T}" ; \ - ${MV} $@.tmp5 $@ ; \ - fi - @${RM} -f $@.tmp $@.tmp2 $@.tmp3 $@.tmp4 -.for subdir in ${SUBDIR} - @cd ${subdir} && ${RECURSIVE_MAKE} ${MAKEFLAGS} "_THISDIR_=${_THISDIR_}${.CURDIR:T}/" ${_README_TYPE} -.endfor -.endif - show-comment: @if [ ${COMMENT:Q}"" ]; then \ ${ECHO} ${COMMENT:Q}; \ |