aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.port.subdir.mk
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1996-04-10 06:54:13 +0800
committerwosch <wosch@FreeBSD.org>1996-04-10 06:54:13 +0800
commit454a94754a14ebe26900c46ac1b98919ce91d82b (patch)
tree3f83ab723b58824d8a6d5d34da1680057f293651 /Mk/bsd.port.subdir.mk
parentbfa49547fe2e114d44e7581ee173a2a5284c99c2 (diff)
downloadfreebsd-ports-gnome-454a94754a14ebe26900c46ac1b98919ce91d82b.tar.gz
freebsd-ports-gnome-454a94754a14ebe26900c46ac1b98919ce91d82b.tar.zst
freebsd-ports-gnome-454a94754a14ebe26900c46ac1b98919ce91d82b.zip
use .for loop for common targets
Diffstat (limited to 'Mk/bsd.port.subdir.mk')
-rw-r--r--Mk/bsd.port.subdir.mk57
1 files changed, 6 insertions, 51 deletions
diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk
index cc0868ce2db9..b4e28e8823b2 100644
--- a/Mk/bsd.port.subdir.mk
+++ b/Mk/bsd.port.subdir.mk
@@ -1,5 +1,5 @@
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
-# $Id: bsd.port.subdir.mk,v 1.12 1996/03/24 00:41:10 wosch Exp $
+# $Id: bsd.port.subdir.mk,v 1.13 1996/04/01 11:13:00 asami Exp $
.MAIN: all
@@ -42,49 +42,12 @@ ${SUBDIR}::
fi; \
${MAKE} all
-.if !target(all)
-all: _SUBDIRUSE
-.endif
-
-.if !target(fetch)
-fetch: _SUBDIRUSE
-.endif
-
-.if !target(fetch-list)
-fetch-list: _SUBDIRUSE
-.endif
-
-.if !target(package)
-package: _SUBDIRUSE
-.endif
-
-.if !target(extract)
-extract: _SUBDIRUSE
-.endif
-
-.if !target(configure)
-configure: _SUBDIRUSE
-.endif
-
-.if !target(build)
-build: _SUBDIRUSE
-.endif
-
-.if !target(clean)
-clean: _SUBDIRUSE
-.endif
-
-.if !target(depend)
-depend: _SUBDIRUSE
-.endif
-
-.if !target(describe)
-describe: _SUBDIRUSE
-.endif
-
-.if !target(reinstall)
-reinstall: _SUBDIRUSE
+.for __target in all fetch fetch-list package extract configure \
+ build clean depend describe reinstall tags checksum
+.if !target(__target)
+${__target}: _SUBDIRUSE
.endif
+.endfor
.if !target(install)
.if !target(beforeinstall)
@@ -98,14 +61,6 @@ afterinstall: realinstall
realinstall: beforeinstall _SUBDIRUSE
.endif
-.if !target(tags)
-tags: _SUBDIRUSE
-.endif
-
-.if !target(checksum)
-checksum: _SUBDIRUSE
-.endif
-
.if !target(readmes)
readmes: readme _SUBDIRUSE
.endif