aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..493cdca
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,43 @@
1# hey, emacs! this is a -*- makefile -*-
2#
3# OpenSim makefile
4#
5
6RUBY = $(strip $(shell which ruby 2>/dev/null))
7ifeq ($(RUBY),)
8NANT = nant
9else
10NANT = $(shell if test "$$EMACS" = "t" ; then echo "nant"; else echo "./nant-color"; fi)
11endif
12
13all: prebuild
14 # @export PATH=/usr/local/bin:$(PATH)
15 ${NANT}
16 find OpenSim -name \*.mdb -exec cp {} bin \;
17
18release: prebuild
19 ${NANT} -D:project.config=Release
20 find OpenSim -name \*.mdb -exec cp {} bin \;
21
22prebuild:
23 ./runprebuild.sh
24
25clean:
26 # @export PATH=/usr/local/bin:$(PATH)
27 -${NANT} clean
28
29test: prebuild
30 ${NANT} test
31
32test-xml: prebuild
33 ${NANT} test-xml
34
35tags:
36 find OpenSim -name \*\.cs | xargs etags
37
38cscope-tags:
39 find OpenSim -name \*\.cs -fprint cscope.files
40 cscope -b
41
42include $(wildcard Makefile.local)
43