summaryrefslogtreecommitdiff
path: root/Mk/bsd.port.subdir.mk
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>1996-04-09 22:54:13 +0000
committerWolfram Schneider <wosch@FreeBSD.org>1996-04-09 22:54:13 +0000
commita59e4cf2bf7cb1079a89ae14ddbb4f2d611c3beb (patch)
treece4e8f4b472b4b0e37419dd25541e34bc2aea739 /Mk/bsd.port.subdir.mk
parentA fancy-looking editor that's smaller than emacs (surprise!). (diff)
use .for loop for common targets
Notes
Notes: svn path=/head/; revision=2964
Diffstat (limited to '')
-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