bsd.subdir.mk (313789) | bsd.subdir.mk (313790) |
---|---|
1# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91 | 1# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91 |
2# $FreeBSD: stable/10/share/mk/bsd.subdir.mk 313789 2017-02-16 04:23:45Z ngie $ | 2# $FreeBSD: stable/10/share/mk/bsd.subdir.mk 313790 2017-02-16 05:14:07Z ngie $ |
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# afterinstall, all, all-man, beforeinstall, checkdpadd, clean, | 27# afterinstall, all, all-man, beforeinstall, check, checkdpadd, clean, |
28# cleandepend, cleandir, cleanilinks depend, install, lint, | 28# cleandepend, cleandir, cleanilinks depend, install, lint, |
29# maninstall, manlint, obj, objlink, realinstall, regress, tags | 29# maninstall, manlint, obj, objlink, realinstall, tags |
30# 31 32.if !target(__<bsd.subdir.mk>__) 33__<bsd.subdir.mk>__: 34 35.include <bsd.init.mk> 36 37DISTRIBUTION?= base --- 27 unchanged lines hidden (view full) --- 65 cd ${.CURDIR}/${.TARGET}.${MACHINE_ARCH}; \ 66 else \ 67 cd ${.CURDIR}/${.TARGET}; \ 68 fi; \ 69 ${MAKE} all 70 71# Work around parsing of .if nested in .for by putting .WAIT string into a var. 72__wait= .WAIT | 30# 31 32.if !target(__<bsd.subdir.mk>__) 33__<bsd.subdir.mk>__: 34 35.include <bsd.init.mk> 36 37DISTRIBUTION?= base --- 27 unchanged lines hidden (view full) --- 65 cd ${.CURDIR}/${.TARGET}.${MACHINE_ARCH}; \ 66 else \ 67 cd ${.CURDIR}/${.TARGET}; \ 68 fi; \ 69 ${MAKE} all 70 71# Work around parsing of .if nested in .for by putting .WAIT string into a var. 72__wait= .WAIT |
73.for __target in all all-man checkdpadd clean cleandepend cleandir \ | 73.for __target in all all-man check checkdpadd clean cleandepend cleandir \ |
74 cleanilinks depend distribute lint maninstall manlint obj objlink \ | 74 cleanilinks depend distribute lint maninstall manlint obj objlink \ |
75 realinstall regress tags ${SUBDIR_TARGETS} | 75 realinstall tags ${SUBDIR_TARGETS} |
76.ifdef SUBDIR_PARALLEL 77__subdir_targets= 78.for __dir in ${SUBDIR} 79.if ${__wait} == ${__dir} 80__subdir_targets+= .WAIT 81.else 82__subdir_targets+= ${__target}_subdir_${__dir} 83__deps= --- 52 unchanged lines hidden --- | 76.ifdef SUBDIR_PARALLEL 77__subdir_targets= 78.for __dir in ${SUBDIR} 79.if ${__wait} == ${__dir} 80__subdir_targets+= .WAIT 81.else 82__subdir_targets+= ${__target}_subdir_${__dir} 83__deps= --- 52 unchanged lines hidden --- |