From da0e292ceed1b8731b38a3dcfac9ad275b930734 Mon Sep 17 00:00:00 2001 From: marc Date: Fri, 2 Apr 1999 06:55:56 +0000 Subject: [PATCH] add list-distfiles target to help me build/update the LICENSE file --- infrastructure/mk/bsd.port.mk | 18 ++++++++++++++---- infrastructure/mk/bsd.port.subdir.mk | 4 ++-- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/infrastructure/mk/bsd.port.mk b/infrastructure/mk/bsd.port.mk index 3189b702b60..793d9be91e9 100644 --- a/infrastructure/mk/bsd.port.mk +++ b/infrastructure/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/infrastructure/mk/bsd.port.subdir.mk b/infrastructure/mk/bsd.port.subdir.mk index 799088890dd..5a1f5dfeee9 100644 --- a/infrastructure/mk/bsd.port.subdir.mk +++ b/infrastructure/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 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