bsd.subdir.mk (7750ad47a9a7dbc83f87158464170c8640723293) | bsd.subdir.mk (0815243c3937b61db8b5a10cc652900d4df4acb0) |
---|---|
1# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91 2# $FreeBSD$ 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 --- 17 unchanged lines hidden (view full) --- 26# 27# afterinstall, all, all-man, beforeinstall, checkdpadd, clean, 28# cleandepend, cleandir, cleanilinks depend, install, lint, 29# maninstall, manlint, obj, objlink, realinstall, regress, tags 30# 31 32.include <bsd.init.mk> 33 | 1# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91 2# $FreeBSD$ 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 --- 17 unchanged lines hidden (view full) --- 26# 27# afterinstall, all, all-man, beforeinstall, checkdpadd, clean, 28# cleandepend, cleandir, cleanilinks depend, install, lint, 29# maninstall, manlint, obj, objlink, realinstall, regress, tags 30# 31 32.include <bsd.init.mk> 33 |
34.if defined(.PARSEDIR) && !defined(NEED_SUBDIR) 35.if ${.MAKE.LEVEL} == 0 && ${.MAKE.MODE:Mmeta*} != "" && !empty(SUBDIR) && !(make(clean*) || make(destroy*)) 36.include <meta.subdir.mk> 37# ignore this 38_SUBDIR: 39.endif 40.endif 41.if !target(_SUBDIR) 42 | |
43DISTRIBUTION?= base 44.if !target(distribute) 45distribute: 46.for dist in ${DISTRIBUTION} 47 ${_+_}cd ${.CURDIR}; \ 48 ${MAKE} install -DNO_SUBDIR DESTDIR=${DISTDIR}/${dist} SHARED=copies 49.endfor 50.endif --- 35 unchanged lines hidden (view full) --- 86.if make(${__stage}${__target}) 87${__stage}${__target}: _SUBDIR 88.endif 89.endfor 90${__target}: 91 ${_+_}set -e; cd ${.CURDIR}; ${MAKE} build${__target}; ${MAKE} install${__target} 92.endfor 93 | 34DISTRIBUTION?= base 35.if !target(distribute) 36distribute: 37.for dist in ${DISTRIBUTION} 38 ${_+_}cd ${.CURDIR}; \ 39 ${MAKE} install -DNO_SUBDIR DESTDIR=${DISTDIR}/${dist} SHARED=copies 40.endfor 41.endif --- 35 unchanged lines hidden (view full) --- 77.if make(${__stage}${__target}) 78${__stage}${__target}: _SUBDIR 79.endif 80.endfor 81${__target}: 82 ${_+_}set -e; cd ${.CURDIR}; ${MAKE} build${__target}; ${MAKE} install${__target} 83.endfor 84 |
94.endif 95 | |
96.if !target(install) 97.if !target(beforeinstall) 98beforeinstall: 99.endif 100.if !target(afterinstall) 101afterinstall: 102.endif 103install: beforeinstall realinstall afterinstall 104.ORDER: beforeinstall realinstall afterinstall 105.endif | 85.if !target(install) 86.if !target(beforeinstall) 87beforeinstall: 88.endif 89.if !target(afterinstall) 90afterinstall: 91.endif 92install: beforeinstall realinstall afterinstall 93.ORDER: beforeinstall realinstall afterinstall 94.endif |