diff options
author | 1999-04-02 06:55:56 +0000 | |
---|---|---|
committer | 1999-04-02 06:55:56 +0000 | |
commit | eff1b5b5e73a68ec4c58256efd49b1f733040a41 (patch) | |
tree | 01646945123be463afa7df70ef8a9d8eb92f7930 | |
parent | Don't delete bsd when we make bsd.rd. Kernel compiles on hp300 take (diff) | |
download | wireguard-openbsd-eff1b5b5e73a68ec4c58256efd49b1f733040a41.tar.xz wireguard-openbsd-eff1b5b5e73a68ec4c58256efd49b1f733040a41.zip |
add list-distfiles target to help me build/update the LICENSE file
-rw-r--r-- | share/mk/bsd.port.mk | 18 | ||||
-rw-r--r-- | share/mk/bsd.port.subdir.mk | 4 |
2 files changed, 16 insertions, 6 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index 3189b702b60..793d9be91e9 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -1,6 +1,6 @@ #-*- mode: Fundamental; tab-width: 4; -*- # ex:ts=4 -# $OpenBSD: bsd.port.mk,v 1.81 1999/03/30 07:12:05 marc Exp $ +# $OpenBSD: bsd.port.mk,v 1.82 1999/04/02 06:55:56 marc Exp $ # # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. @@ -28,7 +28,7 @@ OpenBSD_MAINTAINER= marc@OpenBSD.ORG # NEED_VERSION: we need at least this version of bsd.port.mk for this # port to build -FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.81 1999/03/30 07:12:05 marc Exp $$ +FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.82 1999/04/02 06:55:56 marc Exp $$ .if defined(NEED_VERSION) _VERSION_REVISION=${FULL_REVISION:M[0-9]*.*} @@ -360,6 +360,10 @@ _REVISION_NEEDED=${NEED_VERSION:C/.*\.//} # Setting MIRROR_DISTFILE to "no" in the package Makefile # will override the default "yes", and the distfile will # not be fetched. +# list-distfiles- list the distribution and patch files used by a port. +# Typical use is (from the top level of the ports tree) +# make ECHO_MSG=: list-distfiles | tee some-file +# obj - pre-build ${WRKDIR} -> ${WRKOBJDIR}/${PORTSUBDIR} links # # Default sequence for "all" is: fetch checksum extract patch configure build # @@ -1274,8 +1278,14 @@ mirror-distfiles: @make fetch __ARCH_OK=yes NO_IGNORE=yes NO_WARNINGS=yes .endif -# Obj +# list the distribution and patch files used by a port. Typical +# use is make ECHO_MSG=: list-distfiles | tee some-file +# +list-distfiles: + @for file in ${DISTFILES} ${PATCHFILES}; do ${ECHO} $$file; done +# Obj +# .if !target(obj) obj: .if !defined(NO_WRKDIR) @@ -2314,7 +2324,7 @@ tags: checksum clean clean-depends configure deinstall \ delete-package delete-package-links depend depends depends-list \ describe distclean do-build do-configure do-extract \ - do-fetch do-install do-package do-patch extract \ + do-fetch do-install do-package do-patch extract list-distfiles \ fake-pkg fetch fetch-depends fetch-list fetch-list-one-pkg \ fetch-list-recursive install lib-depends makesum mirror-distfiles \ misc-depends package package-depends package-links package-name \ diff --git a/share/mk/bsd.port.subdir.mk b/share/mk/bsd.port.subdir.mk index 799088890dd..5a1f5dfeee9 100644 --- a/share/mk/bsd.port.subdir.mk +++ b/share/mk/bsd.port.subdir.mk @@ -1,5 +1,5 @@ # from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91 -# $OpenBSD: bsd.port.subdir.mk,v 1.5 1999/03/30 07:12:05 marc Exp $ +# $OpenBSD: bsd.port.subdir.mk,v 1.6 1999/04/02 06:55:56 marc Exp $ # FreeBSD Id: bsd.port.subdir.mk,v 1.20 1997/08/22 11:16:15 asami Exp # # The include file <bsd.port.subdir.mk> contains the default targets @@ -81,7 +81,7 @@ ${SUBDIR}:: .for __target in all fetch fetch-list package extract configure \ build clean depend describe distclean reinstall \ - tags checksum mirror-distfiles obj + tags checksum mirror-distfiles list-distfiles obj .if !target(__target) ${__target}: _SUBDIRUSE .endif |