GNUmakefile 707 B

123456789101112131415161718192021222324252627282930
  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. ADKVERSION= 0.1.0
  6. export ADKVERSION
  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