aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1998-11-08 10:29:53 +0000
committerSatoshi Asami <asami@FreeBSD.org>1998-11-08 10:29:53 +0000
commit4574e6e1747899050d67057dcdd7b8d91e89c451 (patch)
treefcf6b5110fc72846af3680e616d41d65f84e592d /Mk/bsd.port.mk
parent4e07acdc1a081c67956991a716bb44cd2ca668d5 (diff)
downloadports-4574e6e1747899050d67057dcdd7b8d91e89c451.tar.gz
ports-4574e6e1747899050d67057dcdd7b8d91e89c451.zip
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk40
1 files changed, 31 insertions, 9 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index c16fcd4b97ba..cf7282328b01 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1,7 +1,7 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
#
-# $Id: bsd.port.mk,v 1.293 1998/10/09 01:27:21 asami Exp $
+# $Id: bsd.port.mk,v 1.294 1998/10/30 08:28:02 asami Exp $
# $NetBSD: $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
@@ -336,6 +336,8 @@ OpenBSD_MAINTAINER= imp@OpenBSD.ORG
#
# MAKE_ENV - Additional environment vars passed to sub-make in build
# and install stages (default: see below).
+# MAKE_ARGS - Any extra arguments to sub-make in build and install
+# stages (default: none).
#
# For install:
#
@@ -1080,6 +1082,22 @@ package:
.endif
.endif
+################################################################
+# Clean directories for ftp or CDROM.
+################################################################
+
+.if defined(RESTRICTED)
+clean-restricted: delete-distfiles delete-package
+.else
+clean-restricted:
+.endif
+
+.if defined(NO_CDROM)
+clean-for-cdrom: delete-distfiles delete-package
+.else
+clean-for-cdrom:
+.endif
+
.if defined(ALL_HOOK)
all:
@cd ${.CURDIR} && ${SETENV} CURDIR=${.CURDIR} DISTNAME=${DISTNAME} \
@@ -1308,9 +1326,9 @@ do-configure:
.if !target(do-build)
do-build:
.if defined(USE_GMAKE)
- @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
+ @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
.else defined(USE_GMAKE)
- @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
+ @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
.endif
.endif
@@ -1319,14 +1337,14 @@ do-build:
.if !target(do-install)
do-install:
.if defined(USE_GMAKE)
- @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.if defined(USE_IMAKE) && !defined(NO_INSTALL_MANPAGES)
- @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} install.man)
+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install.man)
.endif
.else defined(USE_GMAKE)
- @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.if defined(USE_IMAKE) && !defined(NO_INSTALL_MANPAGES)
- @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install.man)
+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install.man)
.endif
.endif
.endif
@@ -1624,8 +1642,12 @@ pre-distclean:
.endif
.if !target(distclean)
-distclean: pre-distclean clean
- @${ECHO_MSG} "===> Dist cleaning for ${PKGNAME}"
+distclean: pre-distclean clean delete-distfiles
+.endif
+
+.if !target(delete-distfiles)
+delete-distfiles:
+ @${ECHO_MSG} "===> Deleting distfiles for ${PKGNAME}"
@(if [ "X${DISTFILES}${PATCHFILES}" != "X" -a -d ${_DISTDIR} ]; then \
cd ${_DISTDIR}; \
${RM} -f ${DISTFILES} ${PATCHFILES}; \