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
This commit is contained in:
Jordan K. Hubbard
1994-08-25 13:56:08 +00:00
parent 8a2283e2ac
commit 2581e485d5
+6 -21
View File
@@ -1,7 +1,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard. # bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain. # 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: # Supported Variables and their behaviors:
@@ -80,16 +80,13 @@ HOME_LOCATION?= <original site unknown>
.MAIN: all .MAIN: all
all: extract configure build all: extract configure build
# Try to make whomever's install target maintain the same semantics.
install:: pre-install
.if !target(pre-install) .if !target(pre-install)
pre-install: pre-install:
@echo -n @echo -n
.endif .endif
.if !target(install) .if !target(install)
install: install: pre-install
@echo "===> Installing for ${DISTNAME}" @echo "===> Installing for ${DISTNAME}"
.if defined(USE_GMAKE) .if defined(USE_GMAKE)
@(cd ${WRKSRC}; ${GMAKE} install) @(cd ${WRKSRC}; ${GMAKE} install)
@@ -98,16 +95,13 @@ install:
.endif .endif
.endif .endif
# Try to make whomever's package target maintain the same semantics.
package:: pre-package
.if !target(pre-package) .if !target(pre-package)
pre-package: pre-package:
@echo -n @echo -n
.endif .endif
.if !target(package) .if !target(package)
package: package: pre-package
# Makes some gross assumptions about a fairly simple package with no # Makes some gross assumptions about a fairly simple package with no
# install, require or deinstall scripts. Override the arguments with # install, require or deinstall scripts. Override the arguments with
# PKG_ARGS if your package is anything but run-of-the-mill. # PKG_ARGS if your package is anything but run-of-the-mill.
@@ -122,16 +116,13 @@ package:
fi fi
.endif .endif
# Try to make whomever's build target maintain the same semantics.
build:: pre-build
.if !target(pre-build) .if !target(pre-build)
pre-build: pre-build:
@echo -n @echo -n
.endif .endif
.if !target(build) .if !target(build)
build: configure build: configure pre-build
@echo "===> Building for ${DISTNAME}" @echo "===> Building for ${DISTNAME}"
.if defined(DEPENDS) .if defined(DEPENDS)
@echo "===> ${DISTNAME} depends on: ${DEPENDS}" @echo "===> ${DISTNAME} depends on: ${DEPENDS}"
@@ -193,16 +184,13 @@ ${CONFIGURE_COOKIE}:
@touch -f ${CONFIGURE_COOKIE} @touch -f ${CONFIGURE_COOKIE}
.endif .endif
# Try to make whomever's bundle target maintain the same semantics.
bundle:: pre-bundle
.if !target(pre-bundle) .if !target(pre-bundle)
pre-bundle: pre-bundle:
@echo -n @echo -n
.endif .endif
.if !target(bundle) .if !target(bundle)
bundle: bundle: pre-bundle
@echo "===> Bundling for ${DISTNAME}" @echo "===> Bundling for ${DISTNAME}"
@if [ ! -f ${EXTRACT_COOKIE} ]; then \ @if [ ! -f ${EXTRACT_COOKIE} ]; then \
echo ">> There doesn't appear to be a properly extracted"; \ echo ">> There doesn't appear to be a properly extracted"; \
@@ -217,9 +205,6 @@ bundle:
${DISTNAME} ${DISTNAME}
.endif .endif
# Try to make whomever's extract target maintain the same semantics.
extract:: pre-extract
.if !target(pre-extract) .if !target(pre-extract)
pre-extract: pre-extract:
@echo -n @echo -n
@@ -230,7 +215,7 @@ pre-extract:
# because if the user interrupts the extract in the middle (and it's often # 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 # a long procedure), we get tricked into thinking that we've got a good dist
# in ${WRKDIR}. # in ${WRKDIR}.
extract: ${EXTRACT_COOKIE} extract: pre-extract ${EXTRACT_COOKIE}
${EXTRACT_COOKIE}: ${EXTRACT_COOKIE}:
@echo "===> Extracting for ${DISTNAME}" @echo "===> Extracting for ${DISTNAME}"