# $FreeWRT$ #- # This file is part of the FreeWRT project. FreeWRT is copyrighted # material, please see the LICENCE file in the top-level directory # or at http://www.freewrt.org/licence for details. TOPDIR= ${.CURDIR} PWD= ${.CURDIR} .if defined(package) && !empty(package) subdir:= package/${package} . if !make(clean) _subdir_dep:= ${TOPDIR}/.cfg/FWRT_HAVE_DOT_CONFIG . endif .endif .if defined(subdir) && !empty(subdir) _subdir:= ${.TARGETS} ${.TARGETS}: _subdir _subdir: ${_subdir_dep} cd ${.CURDIR}/${subdir} && TOPDIR=${.CURDIR} DEVELOPER=1 \ ${.CURDIR}/lbin/gmake V=99 ${.MFLAGS} ${_subdir} . include "${.CURDIR}/lbin/prereq.mk" . include "${.CURDIR}/mk/split-cfg.mk" .else . include "${.CURDIR}/Makefile" .endif