just make is not enough, it must be GNU make, unfortunately
[openadk.git] / BSDmakefile
blobddf86910674bf96c0d17c85748b58bd75fda61b4
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 ADK_TOPDIR= ${.CURDIR}
5 PWD= ${.CURDIR}
7 .include "${.CURDIR}/Makefile.inc"
9 .if defined(package) && !empty(package)
10 subdir:= package/${package}
11 . if !make(clean)
12 _subdir_dep:= ${ADK_TOPDIR}/.config
13 . endif
14 .endif
16 .if defined(subdir) && !empty(subdir)
17 _subdir:= ${.TARGETS}
18 ${.TARGETS}: _subdir
20 _subdir: ${_subdir_dep}
21 cd ${.CURDIR}/${subdir} && ADK_TOPDIR=${.CURDIR} DEVELOPER=1 \
22 ${GMAKE} ADK_VERBOSE=1 ${.MFLAGS} ${_subdir}
24 . include "${.CURDIR}/prereq.mk"
25 .else
26 . include "${.CURDIR}/Makefile"
27 .endif