mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
use .for loop for common targets
This commit is contained in:
parent
5e945c5595
commit
a59e4cf2bf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=2964
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user