1
0

BSDmakefile 413 B

12345678910111213141516171819202122
  1. #.PHONY: default check_gmake debug static dynamic clean distclean test
  2. MAKE=env -u MAKELEVEL gmake ${MFLAGS}
  3. TARGETS= \
  4. all \
  5. debug \
  6. libdefs \
  7. static \
  8. dynamic \
  9. clean \
  10. distclean \
  11. test \
  12. check
  13. .for target in ${TARGETS}
  14. ${target}: check_gmake .PHONY .SILENT
  15. @${MAKE} ${.TARGET}
  16. .endfor
  17. check_gmake: .PHONY .SILENT
  18. @which gmake > /dev/null 2>&1 || (echo "Please install gmake" && exit 0)