BSDmakefile 401 B

123456789101112131415161718192021
  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. static \
  7. dynamic \
  8. clean \
  9. distclean \
  10. test \
  11. check
  12. .for target in ${TARGETS}
  13. ${target}: check_gmake .PHONY .SILENT
  14. @${MAKE} ${.TARGET}
  15. .endfor
  16. check_gmake: .PHONY .SILENT
  17. @which gmake > /dev/null 2>&1 || (echo "Please install gmake" && exit 0)