diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 1998-04-28 19:19:30 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 1998-04-28 19:19:30 +0000 |
commit | 8d770d16952bc813dc48db3d72c31185e97dbb87 (patch) | |
tree | 2fc3485ad151ff56cb080d5c1c90c0261f7d5b53 | |
parent | f2698eee3d1bba69933cf012bc80c24ed7c7ae02 (diff) |
Redo the way ONLY_FOR_ARCH was implemented. The new method
allows things like "make clean" and a top level "make index" work
regardless of the architecture upon which the command is issued.
-rw-r--r-- | share/mk/bsd.port.mk | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index a37cc08991d..8594d4aa5dd 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -1,6 +1,6 @@ #-*- mode: Fundamental; tab-width: 4; -*- # ex:ts=4 -# $OpenBSD: bsd.port.mk,v 1.28 1998/04/06 21:46:00 marc Exp $ +# $OpenBSD: bsd.port.mk,v 1.29 1998/04/28 19:19:29 marc Exp $ # $NetBSD: $ # # bsd.port.mk - 940820 Jordan K. Hubbard. @@ -278,24 +278,6 @@ OpenBSD_MAINTAINER= joey@OpenBSD.ORG # NEVER override the "regular" targets unless you want to open # a major can of worms. -.if defined(ONLY_FOR_ARCHS) -.for __ARCH in ${ONLY_FOR_ARCHS} -.if ${MACHINE} == "${__ARCH}" -__ARCH_OK= 1 -.endif -.endfor -.else -__ARCH_OK= 1 -.endif - -.if !defined(__ARCH_OK) -.MAIN: all - -fetch fetch-list extract patch clean clean-depends configure build install reinstall package describe checkpatch checksum makesum all: - @echo "This port is only for ${ONLY_FOR_ARCHS}," - @echo "and you are running ${MACHINE}." -.else - # Get the operating system type OPSYS!= uname -s @@ -852,6 +834,15 @@ IGNORE= "is restricted: ${RESTRICTED}" IGNORE= "uses X11, but ${X11BASE} not found" .elif defined(BROKEN) IGNORE= "is marked as broken: ${BROKEN}" +.elif defined(ONLY_FOR_ARCHS) +.for __ARCH in ${ONLY_FOR_ARCHS} +.if ${MACHINE} == "${__ARCH}" +__ARCH_OK= 1 +.endif +.endfor +.if !defined(__ARCH_OK) +IGNORE= "is only for ${ONLY_FOR_ARCHS}, not ${MACHINE}" +.endif .elif defined(COMES_WITH) OS_VER!= uname -r .if ( ${OS_VER} >= ${COMES_WITH} ) @@ -1875,4 +1866,3 @@ depend: tags: .endif -.endif |