There is something wrong around this select to ADK_BROKEN
[openadk.git] / BSDmakefile
blob477fc6d94d38d4649ed60823db070ecb9cb8102f
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= ${.CURDIR}
5 PWD= ${.CURDIR}
7 .if defined(package) && !empty(package)
8 subdir:= package/${package}
9 . if !make(clean)
10 _subdir_dep:= ${TOPDIR}/.cfg/ADK_HAVE_DOT_CONFIG
11 . endif
12 .endif
14 .if defined(subdir) && !empty(subdir)
15 _subdir:= ${.TARGETS}
16 ${.TARGETS}: _subdir
18 _subdir: ${_subdir_dep}
19 @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \
20 echo >&2 Error: you must build with “umask 022, sorry.; \
21 exit 1; \
23 cd ${.CURDIR}/${subdir} && TOPDIR=${.CURDIR} DEVELOPER=1 \
24 gmake VERBOSE=1 ${.MFLAGS} ${_subdir}
26 . include "${.CURDIR}/prereq.mk"
27 . include "${.CURDIR}/mk/split-cfg.mk"
28 .else
29 . include "${.CURDIR}/Makefile"
30 .endif