1
0

BSDmakefile 804 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. 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. @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \
  17. echo >&2 Error: you must build with “umask 022”, sorry.; \
  18. exit 1; \
  19. fi
  20. cd ${.CURDIR}/${subdir} && ADK_TOPDIR=${.CURDIR} DEVELOPER=1 \
  21. ${GMAKE} VERBOSE=1 ${.MFLAGS} ${_subdir}
  22. . include "${.CURDIR}/prereq.mk"
  23. .else
  24. . include "${.CURDIR}/Makefile"
  25. .endif