1
0

GNUmakefile 671 B

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