GNUmakefile 723 B

1234567891011121314151617181920212223242526272829
  1. # $Id: GNUmakefile 255 2008-12-11 16:20:28Z wbx $
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. TOPDIR:= $(shell pwd)
  6. PWD:= ${TOPDIR}
  7. ifneq (${package},)
  8. subdir:= package/${package}
  9. _subdir_dep:= ${TOPDIR}/.cfg/ADK_HAVE_DOT_CONFIG
  10. endif
  11. ifneq (${subdir},)
  12. ${MAKECMDGOALS}: _subdir
  13. _subdir: ${_subdir_dep}
  14. @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \
  15. echo >&2 Error: you must build with “umask 022”, sorry.; \
  16. exit 1; \
  17. fi
  18. cd ${subdir} && TOPDIR=${TOPDIR} DEVELOPER=1 \
  19. make VERBOSE=1 ${MAKEFLAGS} ${MAKECMDGOALS}
  20. include prereq.mk
  21. include mk/split-cfg.mk
  22. else
  23. include Makefile
  24. endif