summaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1995-04-24 10:41:51 +0000
committerasami <asami@FreeBSD.org>1995-04-24 10:41:51 +0000
commitaa80a6121208d96f78be0087351fd85332b73a81 (patch)
tree3528db501fbd72d1632e92e74a3ccaf745e4140c /Mk
parentb8183c9b4deef6e2ced239064538c43e5d21099f (diff)
downloadFreeBSD-ports-aa80a6121208d96f78be0087351fd85332b73a81.zip
FreeBSD-ports-aa80a6121208d96f78be0087351fd85332b73a81.tar.gz
(1) Add the chain of dependencies to the targets in the NO_* section
too (otherwise the chain won't work). (2) If NO_WRKDIR is set, "make clean" removes "./.*_done" (assuming these are cookies...or should I list all the cookies?)
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk22
1 files changed, 12 insertions, 10 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 096a096..d05188d 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.148 1995/04/22 01:22:49 jkh Exp $
+# $Id: bsd.port.mk,v 1.149 1995/04/24 09:05:34 asami Exp $
#
# Please view me with 4 column tabs!
@@ -350,35 +350,35 @@ is_depended: install
################################################################
.if defined(NO_EXTRACT) && !target(extract)
-extract:
+extract: checksum
@${TOUCH} ${TOUCH_FLAGS} ${EXTRACT_COOKIE}
-checksum:
+checksum: fetch
@${DO_NADA}
makesum:
@${DO_NADA}
.endif
.if defined(NO_CONFIGURE) && !target(configure)
-configure:
+configure: patch
@${TOUCH} ${TOUCH_FLAGS} ${CONFIGURE_COOKIE}
.endif
.if defined(NO_BUILD) && !target(build)
-build:
+build: configure
@${TOUCH} ${TOUCH_FLAGS} ${BUILD_COOKIE}
.endif
.if defined(NO_PACKAGE) && !target(package)
-package:
+package: install
@${DO_NADA}
.endif
.if defined(NO_PACKAGE) && !target(repackage)
-repackage:
+repackage: install
@${DO_NADA}
.endif
.if defined(NO_INSTALL) && !target(install)
-install:
+install: build
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
.endif
.if defined(NO_PATCH) && !target(patch)
-patch:
+patch: extract
@${TOUCH} ${TOUCH_FLAGS} ${PATCH_COOKIE}
.endif
@@ -784,7 +784,9 @@ clean: pre-clean
@${ECHO_MSG} "===> Cleaning for ${PKGNAME}"
@rm -f ${EXTRACT_COOKIE} ${CONFIGURE_COOKIE} ${INSTALL_COOKIE} \
${BUILD_COOKIE} ${PATCH_COOKIE}
-.if !defined(NO_WRKDIR)
+.if defined(NO_WRKDIR)
+ @rm -f ${WRKDIR}/.*_done
+.else
@rm -rf ${WRKDIR}
.endif
.endif
OpenPOWER on IntegriCloud