makefile.gnu 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. DIRS=jay mcs class nunit nunit20 monoresgen ilasm tools
  2. DIST=monocharge-`date -u +%Y%m%d`
  3. MCS = mcs
  4. #nant doesn't work yet
  5. default: all
  6. all:
  7. if ! which $(MCS); then \
  8. echo You must have a C\# compiler installed to continue.; \
  9. echo This is typically provided by \'mono\'.; \
  10. echo Read INSTALL.txt for details.; \
  11. exit 1; \
  12. fi;
  13. for i in $(DIRS) ; do \
  14. $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \
  15. done
  16. install:
  17. if test x$$prefix = x; then \
  18. echo Usage is: make -f makefile.gnu install prefix=YOURPREFIX; \
  19. exit 1; \
  20. fi;
  21. for i in $(DIRS) ; do \
  22. $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \
  23. done
  24. test: all
  25. for i in $(DIRS) ; do \
  26. $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \
  27. done
  28. clean:
  29. -rm -f monocharge-*.tar.gz
  30. for i in $(DIRS) ; do \
  31. $(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \
  32. done
  33. # Please do only use `binary-snapshot', the `dist' target will disappear really soon !
  34. binary-snapshot: dist
  35. dist: all
  36. mkdir $(DIST)
  37. for i in $(DIRS) ; do \
  38. $(MAKE) -C $$i -f makefile.gnu install prefix=$(PWD)/$(DIST) || exit 1; \
  39. done
  40. tar -c $(DIST) | gzip > $(DIST).tar.gz
  41. rm -rf $(DIST)