GNUmakefile 729 B

1234567891011121314151617181920212223242526272829303132
  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. include Makefile.inc
  6. ADKVERSION= 0.1.0
  7. export ADKVERSION
  8. ifneq (${package},)
  9. subdir:= package/${package}
  10. _subdir_dep:= ${TOPDIR}/.cfg/ADK_HAVE_DOT_CONFIG
  11. endif
  12. ifneq (${subdir},)
  13. ${MAKECMDGOALS}: _subdir
  14. _subdir: ${_subdir_dep}
  15. @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \
  16. echo >&2 Error: you must build with “umask 022”, sorry.; \
  17. exit 1; \
  18. fi
  19. cd ${subdir} && TOPDIR=${TOPDIR} DEVELOPER=1 \
  20. make VERBOSE=1 ${MAKEFLAGS} ${MAKECMDGOALS}
  21. include prereq.mk
  22. include mk/split-cfg.mk
  23. else
  24. include Makefile
  25. endif