diff options
author | agc <agc> | 1999-06-28 11:42:28 +0000 |
---|---|---|
committer | agc <agc> | 1999-06-28 11:42:28 +0000 |
commit | 030ae1bffeaa09d784db39d0dde089efd92fafd5 (patch) | |
tree | 7386f37c7e3c9e14f1c445583c414327694095a5 /mk | |
parent | e7e0b3c78a8522a68abf64d3f2ff4b2e3e544e78 (diff) | |
download | pkgsrc-030ae1bffeaa09d784db39d0dde089efd92fafd5.tar.gz |
Add a "show-distfiles" target, used to show the distfiles and patchfiles
(including any subdir) for a package. If ${IGNORE} is set, for any reason,
do not print anything. The output is relative to ${DISTDIR}.
This target can be used to identify out of date distfiles and patchfiles
in ${DISTDIR}, in conjunction with suitable filters.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 20 | ||||
-rw-r--r-- | mk/bsd.pkg.subdir.mk | 19 |
2 files changed, 37 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 3b0112068c9..9f1cc9882e7 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.285 1999/06/24 08:04:15 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.286 1999/06/28 11:42:28 agc Exp $ # # This file is in the public domain. # @@ -892,6 +892,19 @@ do-fetch: .endif .endif +.if !target(show-distfiles) +show-distfiles: +.if defined(IGNORE) + ${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA} +.else + ${_PKG_SILENT}${_PKG_DEBUG} \ + for file in "" ${_CKSUMFILES}; do \ + if [ "X$$file" = "X" ]; then continue; fi; \ + ${ECHO} $$file; \ + done +.endif +.endif + # Extract @@ -2153,6 +2166,11 @@ depend: tags: .endif +# if automatic manual page compression is done, set it if MANZ is set +.if defined(MANCOMPRESSED_IF_MANZ) && defined(MANZ) +MANCOMPRESSED= yes +.endif + # generate ${PLIST} from ${PLIST_SRC} by: # - fixing list of man-pages according to MANCOMPRESSED/MANZ # (we don't take any notice of MANCOMPRESSED as many packages have .gz diff --git a/mk/bsd.pkg.subdir.mk b/mk/bsd.pkg.subdir.mk index 57ad0586a26..211af5707bd 100644 --- a/mk/bsd.pkg.subdir.mk +++ b/mk/bsd.pkg.subdir.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.subdir.mk,v 1.28 1999/05/17 23:34:37 tron Exp $ +# $NetBSD: bsd.pkg.subdir.mk,v 1.29 1999/06/28 11:42:29 agc 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 # @@ -182,3 +182,20 @@ README.html: .PRECIOUS .for subdir in ${SUBDIR} @cd ${subdir} && ${MAKE} "_THISDIR_=${_THISDIR_}${.CURDIR:T}/" ${_README_TYPE} .endfor + +.if !target(show-distfiles) +show-distfiles: + @for entry in ${SUBDIR}; do \ + if [ -d ${.CURDIR}/$${entry}.${MACHINE} ]; then \ + edir=$${entry}.${MACHINE}; \ + elif [ -d ${.CURDIR}/$${entry} ]; then \ + edir=$${entry}; \ + else \ + OK="false"; \ + ${ECHO_MSG} "===> ${_THISDIR_}$${entry} non-existent"; \ + fi; \ + if [ "$$OK" = "" ]; then \ + cd ${.CURDIR}/$${edir} && ${MAKE} show-distfiles; \ + fi; \ + done +.endif |