2009-09-03 16:31:02 +00:00
|
|
|
# hey, emacs! this is a -*- makefile -*-
|
|
|
|
#
|
|
|
|
# OpenSim makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
RUBY = $(strip $(shell which ruby 2>/dev/null))
|
|
|
|
ifeq ($(RUBY),)
|
|
|
|
NANT = nant
|
|
|
|
else
|
|
|
|
NANT = $(shell if test "$$EMACS" = "t" ; then echo "nant"; else echo "./nant-color"; fi)
|
|
|
|
endif
|
2008-07-25 12:51:01 +00:00
|
|
|
|
2008-09-10 20:31:24 +00:00
|
|
|
all: prebuild
|
|
|
|
# @export PATH=/usr/local/bin:$(PATH)
|
2008-07-25 12:51:01 +00:00
|
|
|
${NANT}
|
2008-07-10 00:05:21 +00:00
|
|
|
find OpenSim -name \*.mdb -exec cp {} bin \;
|
|
|
|
|
2009-02-07 03:18:58 +00:00
|
|
|
release: prebuild
|
2009-02-07 03:21:34 +00:00
|
|
|
${NANT} -D:project.config=Release
|
|
|
|
find OpenSim -name \*.mdb -exec cp {} bin \;
|
2009-02-07 03:18:58 +00:00
|
|
|
|
2008-09-10 21:36:01 +00:00
|
|
|
prebuild:
|
|
|
|
./runprebuild.sh
|
|
|
|
|
2008-07-10 00:05:21 +00:00
|
|
|
clean:
|
2008-09-08 20:34:45 +00:00
|
|
|
# @export PATH=/usr/local/bin:$(PATH)
|
2009-09-03 16:31:02 +00:00
|
|
|
-${NANT} clean
|
2008-07-10 00:05:21 +00:00
|
|
|
|
2008-09-10 20:31:24 +00:00
|
|
|
test: prebuild
|
2008-09-08 20:34:45 +00:00
|
|
|
${NANT} test
|
|
|
|
|
2008-09-10 20:31:24 +00:00
|
|
|
test-xml: prebuild
|
2008-09-10 17:49:37 +00:00
|
|
|
${NANT} test-xml
|
|
|
|
|
2008-07-10 00:05:21 +00:00
|
|
|
tags:
|
|
|
|
find OpenSim -name \*\.cs | xargs etags
|
2008-07-25 12:51:01 +00:00
|
|
|
|
2009-06-01 01:24:18 +00:00
|
|
|
cscope-tags:
|
|
|
|
find OpenSim -name \*\.cs -fprint cscope.files
|
|
|
|
cscope -b
|
|
|
|
|
2009-04-16 12:07:40 +00:00
|
|
|
include $(wildcard Makefile.local)
|
|
|
|
|