Makefile 776 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # hey, emacs! this is a -*- makefile -*-
  2. #
  3. # OpenSim makefile
  4. #
  5. RUBY = $(strip $(shell which ruby 2>/dev/null))
  6. ifeq ($(RUBY),)
  7. NANT = nant
  8. else
  9. NANT = $(shell if test "$$EMACS" = "t" ; then echo "nant"; else echo "./nant-color"; fi)
  10. endif
  11. all: prebuild
  12. # @export PATH=/usr/local/bin:$(PATH)
  13. ${NANT}
  14. find OpenSim -name \*.mdb -exec cp {} bin \;
  15. release: prebuild
  16. ${NANT} -D:project.config=Release
  17. find OpenSim -name \*.mdb -exec cp {} bin \;
  18. prebuild:
  19. ./runprebuild.sh
  20. clean:
  21. # @export PATH=/usr/local/bin:$(PATH)
  22. -${NANT} clean
  23. test: prebuild
  24. ${NANT} test
  25. test-xml: prebuild
  26. ${NANT} test-xml
  27. tags:
  28. find OpenSim -name \*\.cs | xargs etags
  29. cscope-tags:
  30. find OpenSim -name \*\.cs -fprint cscope.files
  31. cscope -b
  32. include $(wildcard Makefile.local)