bash: set cache-file to /dev/null, breaks cross-compiling otherwise
[openadk.git] / GNUmakefile
bloba5c07a331124f6818b3b29735dadefe81b050d48
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}/.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 else
30 include Makefile
31 endif