cfgfs support for alix2d13
[openadk.git] / GNUmakefile
blob83d4f438638f1ac5089c1ba4925ae8468d1ed76d
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 include Makefile.inc
9 ADKVERSION= 0.1.0
10 export ADKVERSION
12 ifneq (${package},)
13 subdir:= package/${package}
14 _subdir_dep:= ${TOPDIR}/.cfg/ADK_HAVE_DOT_CONFIG
15 endif
17 ifneq (${subdir},)
18 ${MAKECMDGOALS}: _subdir
20 _subdir: ${_subdir_dep}
21 @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \
22 echo >&2 Error: you must build with “umask 022, sorry.; \
23 exit 1; \
25 cd ${subdir} && TOPDIR=${TOPDIR} DEVELOPER=1 \
26 make VERBOSE=1 ${MAKEFLAGS} ${MAKECMDGOALS}
28 include prereq.mk
29 include mk/split-cfg.mk
30 else
31 include Makefile
32 endif