diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-10 19:00:38 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-10 19:00:38 +0100 |
commit | 2519557c8dbd0a902d89dbced3e85463880babb1 (patch) | |
tree | 4dab7f456bd749c3ce62adc9c3d8f24e7c863bf8 /makefile | |
parent | 7de93724af9791bad0a8e887d02bf7a3a872305c (diff) | |
parent | fadb47884308490085a33d3fb1e857a0f5e5d748 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 000000000..760d123d6 --- /dev/null +++ b/makefile @@ -0,0 +1,35 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +ADKVERSION= 0.1.0 +TOPDIR= ${.CURDIR} +PWD= ${.CURDIR} + +.include "${.CURDIR}/Makefile.inc" + +GMAKE_ENV+= ADKVERSION=${ADKVERSION:Q} + +.if defined(package) && !empty(package) +subdir:= package/${package} +. if !make(clean) +_subdir_dep:= ${TOPDIR}/.ADK_HAVE_DOT_CONFIG +. endif +.endif + +.if defined(subdir) && !empty(subdir) +_subdir:= ${.TARGETS} +${.TARGETS}: _subdir + +_subdir: ${_subdir_dep} + @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \ + echo >&2 Error: you must build with “umask 022”, sorry.; \ + exit 1; \ + fi + cd ${.CURDIR}/${subdir} && TOPDIR=${.CURDIR} DEVELOPER=1 \ + ${GMAKE} VERBOSE=1 ${.MFLAGS} ${_subdir} + +. include "${.CURDIR}/prereq.mk" +. include "${.CURDIR}/mk/split-cfg.mk" +.else +. include "${.CURDIR}/Makefile" +.endif |