GNUmakefile 676 B

12345678910111213141516171819202122232425262728293031
  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}/.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} \
  20. make VERBOSE=1 ${MAKEFLAGS} ${MAKECMDGOALS}
  21. include prereq.mk
  22. else
  23. include Makefile
  24. endif