GNUmakefile 522 B

123456789101112131415161718192021222324
  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. cd ${subdir} && ADK_TOPDIR=${ADK_TOPDIR} DEVELOPER=1 \
  14. make ADK_VERBOSE=1 ${MAKEFLAGS} ${MAKECMDGOALS}
  15. include prereq.mk
  16. else
  17. include Makefile
  18. endif