summaryrefslogtreecommitdiff
path: root/GNUmakefile
blob: 698c0ea6850db1d23d66562080a87c1f6a8b2197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

ADK_TOPDIR:=	$(shell pwd)
PWD:=		${ADK_TOPDIR}

include Makefile.inc

ifneq (${package},)
subdir:=	package/${package}
_subdir_dep:=	${ADK_TOPDIR}/.config
endif

ifneq (${subdir},)
${MAKECMDGOALS}: _subdir

_subdir: ${_subdir_dep}
	cd ${subdir} && ADK_TOPDIR=${ADK_TOPDIR} DEVELOPER=1 \
	    make VERBOSE=1 ${MAKEFLAGS} ${MAKECMDGOALS}

include prereq.mk
else
include Makefile
endif