Deleted Added
full compact
bsd.subdir.mk (95356) bsd.subdir.mk (95509)
1# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
1# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
2# $FreeBSD: head/share/mk/bsd.subdir.mk 95356 2002-04-24 11:26:19Z ru $
2# $FreeBSD: head/share/mk/bsd.subdir.mk 95509 2002-04-26 17:55:27Z ru $
3#
4# The include file <bsd.subdir.mk> contains the default targets
5# for building subdirectories.
6#
7# For all of the directories listed in the variable SUBDIRS, the
8# specified directory will be visited and the target made. There is
9# also a default target which allows the command "make subdir" where
10# subdir is any directory listed in the variable SUBDIRS.

--- 8 unchanged lines hidden (view full) ---

19# subdirectories.
20#
21# +++ targets +++
22#
23# distribute:
24# This is a variant of install, which will
25# put the stuff into the right "distribution".
26#
3#
4# The include file <bsd.subdir.mk> contains the default targets
5# for building subdirectories.
6#
7# For all of the directories listed in the variable SUBDIRS, the
8# specified directory will be visited and the target made. There is
9# also a default target which allows the command "make subdir" where
10# subdir is any directory listed in the variable SUBDIRS.

--- 8 unchanged lines hidden (view full) ---

19# subdirectories.
20#
21# +++ targets +++
22#
23# distribute:
24# This is a variant of install, which will
25# put the stuff into the right "distribution".
26#
27# afterdistribute, afterinstall, all, all-man, beforeinstall, checkdpadd,
27# afterinstall, all, all-man, beforeinstall, checkdpadd,
28# clean, cleandepend, cleandir, depend, install, lint,
29# obj, objlink, realinstall, regress, tags
30#
31
32.include <bsd.init.mk>
33
34_SUBDIR: .USE
35.if defined(SUBDIR) && !empty(SUBDIR)

--- 16 unchanged lines hidden (view full) ---

52 @if test -d ${.TARGET}.${MACHINE_ARCH}; then \
53 cd ${.CURDIR}/${.TARGET}.${MACHINE_ARCH}; \
54 else \
55 cd ${.CURDIR}/${.TARGET}; \
56 fi; \
57 ${MAKE} all
58
59
28# clean, cleandepend, cleandir, depend, install, lint,
29# obj, objlink, realinstall, regress, tags
30#
31
32.include <bsd.init.mk>
33
34_SUBDIR: .USE
35.if defined(SUBDIR) && !empty(SUBDIR)

--- 16 unchanged lines hidden (view full) ---

52 @if test -d ${.TARGET}.${MACHINE_ARCH}; then \
53 cd ${.CURDIR}/${.TARGET}.${MACHINE_ARCH}; \
54 else \
55 cd ${.CURDIR}/${.TARGET}; \
56 fi; \
57 ${MAKE} all
58
59
60.for __target in all all-man checkdpadd clean cleandepend cleandir depend lint \
60.for __target in all all-man checkdpadd clean cleandepend cleandir \
61 depend distribute lint \
61 obj objlink realinstall regress tags
62${__target}: _SUBDIR
63.endfor
64
65.if !target(install)
66.if !target(beforeinstall)
67beforeinstall:
68.endif
69.if !target(afterinstall)
70afterinstall:
71.endif
72install: afterinstall
73afterinstall: realinstall
74realinstall: beforeinstall
75.endif
62 obj objlink realinstall regress tags
63${__target}: _SUBDIR
64.endfor
65
66.if !target(install)
67.if !target(beforeinstall)
68beforeinstall:
69.endif
70.if !target(afterinstall)
71afterinstall:
72.endif
73install: afterinstall
74afterinstall: realinstall
75realinstall: beforeinstall
76.endif
76
77DISTRIBUTION?= base
78.if !target(afterdistribute)
79afterdistribute:
80.endif
81.if !target(distribute)
82distribute: _SUBDIR
83.for dist in ${DISTRIBUTION}
84 cd ${.CURDIR} ; ${MAKE} afterdistribute DESTDIR=${DISTDIR}/${dist}
85.endfor
86.endif