summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-08-25 13:56:08 +0000
committerjkh <jkh@FreeBSD.org>1994-08-25 13:56:08 +0000
commit113dd06d2038612f4835f74c623d52a4ba63b94b (patch)
treec5e466850779b2629d9afc77d118db368ea459fe /share
parent2239e40cd84d571c56d05e6a3995fb270efc9d21 (diff)
downloadFreeBSD-src-113dd06d2038612f4835f74c623d52a4ba63b94b.zip
FreeBSD-src-113dd06d2038612f4835f74c623d52a4ba63b94b.tar.gz
Sigh. I am a hosebrain. I've been using gmake for so long, I've
started using some of its features reflexively. Submitted by: jkh
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.port.mk27
1 files changed, 6 insertions, 21 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index 3d7f9fd..1c56c3c 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -1,7 +1,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.16 1994/08/24 14:49:33 jkh Exp $
+# $Id: bsd.port.mk,v 1.17 1994/08/25 13:53:02 jkh Exp $
#
# Supported Variables and their behaviors:
@@ -80,16 +80,13 @@ HOME_LOCATION?= <original site unknown>
.MAIN: all
all: extract configure build
-# Try to make whomever's install target maintain the same semantics.
-install:: pre-install
-
.if !target(pre-install)
pre-install:
@echo -n
.endif
.if !target(install)
-install:
+install: pre-install
@echo "===> Installing for ${DISTNAME}"
.if defined(USE_GMAKE)
@(cd ${WRKSRC}; ${GMAKE} install)
@@ -98,16 +95,13 @@ install:
.endif
.endif
-# Try to make whomever's package target maintain the same semantics.
-package:: pre-package
-
.if !target(pre-package)
pre-package:
@echo -n
.endif
.if !target(package)
-package:
+package: pre-package
# Makes some gross assumptions about a fairly simple package with no
# install, require or deinstall scripts. Override the arguments with
# PKG_ARGS if your package is anything but run-of-the-mill.
@@ -122,16 +116,13 @@ package:
fi
.endif
-# Try to make whomever's build target maintain the same semantics.
-build:: pre-build
-
.if !target(pre-build)
pre-build:
@echo -n
.endif
.if !target(build)
-build: configure
+build: configure pre-build
@echo "===> Building for ${DISTNAME}"
.if defined(DEPENDS)
@echo "===> ${DISTNAME} depends on: ${DEPENDS}"
@@ -193,16 +184,13 @@ ${CONFIGURE_COOKIE}:
@touch -f ${CONFIGURE_COOKIE}
.endif
-# Try to make whomever's bundle target maintain the same semantics.
-bundle:: pre-bundle
-
.if !target(pre-bundle)
pre-bundle:
@echo -n
.endif
.if !target(bundle)
-bundle:
+bundle: pre-bundle
@echo "===> Bundling for ${DISTNAME}"
@if [ ! -f ${EXTRACT_COOKIE} ]; then \
echo ">> There doesn't appear to be a properly extracted"; \
@@ -217,9 +205,6 @@ bundle:
${DISTNAME}
.endif
-# Try to make whomever's extract target maintain the same semantics.
-extract:: pre-extract
-
.if !target(pre-extract)
pre-extract:
@echo -n
@@ -230,7 +215,7 @@ pre-extract:
# because if the user interrupts the extract in the middle (and it's often
# a long procedure), we get tricked into thinking that we've got a good dist
# in ${WRKDIR}.
-extract: ${EXTRACT_COOKIE}
+extract: pre-extract ${EXTRACT_COOKIE}
${EXTRACT_COOKIE}:
@echo "===> Extracting for ${DISTNAME}"
OpenPOWER on IntegriCloud