make allmodconfig round for lemote yeelong target
[openadk.git] / GNUmakefile
blob45bcb8e52c06fc932d4c1d4707a9022d06fe517c
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 TOPDIR:= $(shell pwd)
5 PWD:= ${TOPDIR}
7 ifneq (${package},)
8 subdir:= package/${package}
9 _subdir_dep:= ${TOPDIR}/.cfg/ADK_HAVE_DOT_CONFIG
10 endif
12 ifneq (${subdir},)
13 ${MAKECMDGOALS}: _subdir
15 _subdir: ${_subdir_dep}
16 @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \
17 echo >&2 Error: you must build with “umask 022, sorry.; \
18 exit 1; \
20 cd ${subdir} && TOPDIR=${TOPDIR} DEVELOPER=1 \
21 make VERBOSE=1 ${MAKEFLAGS} ${MAKECMDGOALS}
23 include prereq.mk
24 include mk/split-cfg.mk
25 else
26 include Makefile
27 endif