mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 14:54:24 +00:00
remove BINGRP?=, BINOWN?=, BINMODE?=, STRIP?=
use .for loop for common targets
This commit is contained in:
parent
4c3dfdc376
commit
8e1a411f0b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15061
|
@ -1,16 +1,8 @@
|
|||
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
|
||||
# $Id: bsd.subdir.mk,v 1.7 1995/01/23 20:50:56 jkh Exp $
|
||||
# $Id: bsd.subdir.mk,v 1.8 1995/02/25 20:51:14 phk Exp $
|
||||
|
||||
.MAIN: all
|
||||
|
||||
.if !defined(DEBUG_FLAGS)
|
||||
STRIP?= -s
|
||||
.endif
|
||||
|
||||
BINGRP?= bin
|
||||
BINOWN?= bin
|
||||
BINMODE?= 555
|
||||
|
||||
_SUBDIRUSE: .USE
|
||||
@for entry in ${SUBDIR}; do \
|
||||
(if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \
|
||||
|
@ -33,34 +25,12 @@ ${SUBDIR}::
|
|||
fi; \
|
||||
${MAKE} all
|
||||
|
||||
.if !target(all)
|
||||
all: _SUBDIRUSE
|
||||
.endif
|
||||
|
||||
.if !target(clean)
|
||||
clean: _SUBDIRUSE
|
||||
.endif
|
||||
|
||||
.if !target(cleandir)
|
||||
cleandir: _SUBDIRUSE
|
||||
.endif
|
||||
|
||||
.if !target(depend)
|
||||
depend: _SUBDIRUSE
|
||||
.endif
|
||||
|
||||
.if !target (maninstall)
|
||||
maninstall: _SUBDIRUSE
|
||||
.endif
|
||||
|
||||
DISTRIBUTION?= bin
|
||||
.if !target(afterdistribute)
|
||||
afterdistribute:
|
||||
.endif
|
||||
.if !target(distribute)
|
||||
distribute: _SUBDIRUSE
|
||||
cd ${.CURDIR} ; ${MAKE} afterdistribute DESTDIR=${DISTDIR}/${DISTRIBUTION}
|
||||
.for __target in all clean cleandir obj depend maninstall lint tags
|
||||
.if !target(__target)
|
||||
${__target}: _SUBDIRUSE
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
.if !target(install)
|
||||
.if !target(beforeinstall)
|
||||
|
@ -74,14 +44,11 @@ afterinstall: realinstall
|
|||
realinstall: beforeinstall _SUBDIRUSE
|
||||
.endif
|
||||
|
||||
.if !target(lint)
|
||||
lint: _SUBDIRUSE
|
||||
DISTRIBUTION?= bin
|
||||
.if !target(afterdistribute)
|
||||
afterdistribute:
|
||||
.endif
|
||||
|
||||
.if !target(obj)
|
||||
obj: _SUBDIRUSE
|
||||
.endif
|
||||
|
||||
.if !target(tags)
|
||||
tags: _SUBDIRUSE
|
||||
.if !target(distribute)
|
||||
distribute: _SUBDIRUSE
|
||||
cd ${.CURDIR} ; ${MAKE} afterdistribute DESTDIR=${DISTDIR}/${DISTRIBUTION}
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue