|
Revision 2486, 0.7 kB
(checked in by tg, 2 years ago)
|
for “make package=foo clean”, do not invoke the .config autosplit
(BSD make only, feel free to do this in the GNUmakefile as well –
if you can, that is… gmake sucks…)
|
| Line | |
|---|
| 1 |
# $FreeWRT$ |
|---|
| 2 |
#- |
|---|
| 3 |
# This file is part of the FreeWRT project. FreeWRT is copyrighted |
|---|
| 4 |
# material, please see the LICENCE file in the top-level directory |
|---|
| 5 |
# or at http://www.freewrt.org/licence for details. |
|---|
| 6 |
|
|---|
| 7 |
TOPDIR= ${.CURDIR} |
|---|
| 8 |
PWD= ${.CURDIR} |
|---|
| 9 |
|
|---|
| 10 |
.if defined(package) && !empty(package) |
|---|
| 11 |
subdir:= package/${package} |
|---|
| 12 |
. if !make(clean) |
|---|
| 13 |
_subdir_dep:= ${TOPDIR}/.cfg/FWRT_HAVE_DOT_CONFIG |
|---|
| 14 |
. endif |
|---|
| 15 |
.endif |
|---|
| 16 |
|
|---|
| 17 |
.if defined(subdir) && !empty(subdir) |
|---|
| 18 |
_subdir:= ${.TARGETS} |
|---|
| 19 |
${.TARGETS}: _subdir |
|---|
| 20 |
|
|---|
| 21 |
_subdir: ${_subdir_dep} |
|---|
| 22 |
cd ${.CURDIR}/${subdir} && TOPDIR=${.CURDIR} DEVELOPER=1 \ |
|---|
| 23 |
${.CURDIR}/lbin/gmake V=99 ${.MFLAGS} ${_subdir} |
|---|
| 24 |
|
|---|
| 25 |
. include "${.CURDIR}/lbin/prereq.mk" |
|---|
| 26 |
. include "${.CURDIR}/mk/split-cfg.mk" |
|---|
| 27 |
.else |
|---|
| 28 |
. include "${.CURDIR}/Makefile" |
|---|
| 29 |
.endif |
|---|