GNUmakefile 670 B

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