BSDmakefile 655 B

123456789101112131415161718192021222324252627
  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= ${.CURDIR}
  4. PWD= ${.CURDIR}
  5. .include "${.CURDIR}/Makefile.inc"
  6. .if defined(package) && !empty(package)
  7. subdir:= package/${package}
  8. . if !make(clean)
  9. _subdir_dep:= ${ADK_TOPDIR}/.config
  10. . endif
  11. .endif
  12. .if defined(subdir) && !empty(subdir)
  13. _subdir:= ${.TARGETS}
  14. ${.TARGETS}: _subdir
  15. _subdir: ${_subdir_dep}
  16. cd ${.CURDIR}/${subdir} && ADK_TOPDIR=${.CURDIR} DEVELOPER=1 \
  17. ${GMAKE} ADK_VERBOSE=1 ${.MFLAGS} ${_subdir}
  18. . include "${.CURDIR}/prereq.mk"
  19. .else
  20. . include "${.CURDIR}/Makefile"
  21. .endif