summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1996-04-05 22:22:44 +0000
committerwosch <wosch@FreeBSD.org>1996-04-05 22:22:44 +0000
commit799bd81e01c3186d3fc8bd4a4121b8a799a747fe (patch)
treebfcad0dbf06ed4246113004e5c6e695cf4141a44 /share
parent060233b67350d87351fb296b27656442ad41bdc3 (diff)
downloadFreeBSD-src-799bd81e01c3186d3fc8bd4a4121b8a799a747fe.zip
FreeBSD-src-799bd81e01c3186d3fc8bd4a4121b8a799a747fe.tar.gz
remove BINGRP?=, BINOWN?=, BINMODE?=, STRIP?=
use .for loop for common targets
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.subdir.mk55
1 files changed, 11 insertions, 44 deletions
diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk
index ec2a5fa..c7d7cf9 100644
--- a/share/mk/bsd.subdir.mk
+++ b/share/mk/bsd.subdir.mk
@@ -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
-.endif
-
-.if !target(obj)
-obj: _SUBDIRUSE
+DISTRIBUTION?= bin
+.if !target(afterdistribute)
+afterdistribute:
.endif
-
-.if !target(tags)
-tags: _SUBDIRUSE
+.if !target(distribute)
+distribute: _SUBDIRUSE
+ cd ${.CURDIR} ; ${MAKE} afterdistribute DESTDIR=${DISTDIR}/${DISTRIBUTION}
.endif
OpenPOWER on IntegriCloud