summaryrefslogtreecommitdiffstats
path: root/share/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
commit3ea8818b8fad560c4e00fef4249a7a55f33b7997 (patch)
treea3f1ddd97c05d8b2d6ba1b5a6990b677028b05c9 /share/mk
parent8130adab62541a1a79bbd37c7f2a171238adbc89 (diff)
downloadFreeBSD-src-3ea8818b8fad560c4e00fef4249a7a55f33b7997.zip
FreeBSD-src-3ea8818b8fad560c4e00fef4249a7a55f33b7997.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 'share/mk')
-rw-r--r--share/mk/bsd.port.mk22
1 files changed, 12 insertions, 10 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index 096a096..d05188d 100644
--- a/share/mk/bsd.port.mk
+++ b/share/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