use .for loop for common targets

This commit is contained in:
wosch 1996-04-09 22:54:13 +00:00
parent 50c95294f0
commit 832bcac465

View File

@ -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