BSDmakefile 828 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. ADKVERSION= 0.1.0
  4. TOPDIR= ${.CURDIR}
  5. PWD= ${.CURDIR}
  6. .if defined(package) && !empty(package)
  7. subdir:= package/${package}
  8. . if !make(clean)
  9. _subdir_dep:= ${TOPDIR}/.cfg/ADK_HAVE_DOT_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} && TOPDIR=${.CURDIR} DEVELOPER=1 \
  21. gmake VERBOSE=1 ${.MFLAGS} ${_subdir}
  22. . include "${.CURDIR}/prereq.mk"
  23. . include "${.CURDIR}/mk/split-cfg.mk"
  24. .else
  25. . include "${.CURDIR}/Makefile"
  26. .endif