Makefile 663 B

123456789101112131415161718192021222324252627282930313233
  1. # $Id: Makefile,v 1.4 2002/08/16 13:55:42 dijkstra Exp $
  2. SUBDIR= lib mon monmux
  3. V=2.1
  4. .if make(clean)
  5. SUBDIR+= ports/mon
  6. .endif
  7. .include "Makefile.inc"
  8. all: _SUBDIRUSE
  9. clean: _SUBDIRUSE
  10. install: _SUBDIRUSE
  11. # Not all the stuff that I'm working on is ready for release
  12. dist: clean
  13. @workdir=`basename ${.CURDIR}`; \
  14. cd ..; \
  15. echo Exporting mon-${V}.tar.gz; \
  16. find $${workdir} -type f -print | egrep -v 'CVS|doc|clients|README|TODO|regress|#'| \
  17. tar -czvf mon-${V}.tar.gz -I -
  18. _SUBDIRUSE: .USE
  19. .if defined(SUBDIR)
  20. @for entry in ${SUBDIR}; do \
  21. echo "===> $${entry}"; \
  22. cd ${.CURDIR}/$${entry}; \
  23. ${MAKE} ${.MAKEFLAGS} ${.TARGET}; \
  24. done
  25. .endif