diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /GNUmakefile |
Initial import
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 000000000..182ac083e --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,29 @@ +# $Id: GNUmakefile 255 2008-12-11 16:20:28Z wbx $ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +TOPDIR:= $(shell pwd) +PWD:= ${TOPDIR} + +ifneq (${package},) +subdir:= package/${package} +_subdir_dep:= ${TOPDIR}/.cfg/ADK_HAVE_DOT_CONFIG +endif + +ifneq (${subdir},) +${MAKECMDGOALS}: _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 ${subdir} && TOPDIR=${TOPDIR} DEVELOPER=1 \ + make VERBOSE=1 ${MAKEFLAGS} ${MAKECMDGOALS} + +include prereq.mk +include mk/split-cfg.mk +else +include Makefile +endif |