just make is not enough, it must be GNU make, unfortunately
[openadk.git] / GNUmakefile
blob1cd73044e866a5556a79db05637684ad3b0497ec
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:= $(shell pwd)
5 PWD:= ${ADK_TOPDIR}
7 include Makefile.inc
9 ifneq (${package},)
10 subdir:= package/${package}
11 _subdir_dep:= ${ADK_TOPDIR}/.config
12 endif
14 ifneq (${subdir},)
15 ${MAKECMDGOALS}: _subdir
17 _subdir: ${_subdir_dep}
18 cd ${subdir} && ADK_TOPDIR=${ADK_TOPDIR} DEVELOPER=1 \
19 make ADK_VERBOSE=1 ${MAKEFLAGS} ${MAKECMDGOALS}
21 include prereq.mk
22 else
23 include Makefile
24 endif