aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordr scofield (aka dirk husemann)2009-09-03 18:31:02 +0200
committerdr scofield (aka dirk husemann)2009-09-03 18:32:41 +0200
commit01242c5ccb5abe2cf0b1ad7ad619d606827bd4bb (patch)
treee227a45e31c5d30f726398f22b8ed664ffe23cd9
parentanother git test (diff)
downloadopensim-SC_OLD-01242c5ccb5abe2cf0b1ad7ad619d606827bd4bb.zip
opensim-SC_OLD-01242c5ccb5abe2cf0b1ad7ad619d606827bd4bb.tar.gz
opensim-SC_OLD-01242c5ccb5abe2cf0b1ad7ad619d606827bd4bb.tar.bz2
opensim-SC_OLD-01242c5ccb5abe2cf0b1ad7ad619d606827bd4bb.tar.xz
making Makefile a bit more robust: can now cope with missing ruby in a
better way.
Diffstat (limited to '')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 46ddc2f..493cdca 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,14 @@
1NANT = $(shell if test "$$EMACS" = "t" ; then echo "nant"; else echo "./nant-color"; fi) 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
2 12
3all: prebuild 13all: prebuild
4 # @export PATH=/usr/local/bin:$(PATH) 14 # @export PATH=/usr/local/bin:$(PATH)
@@ -14,7 +24,7 @@ prebuild:
14 24
15clean: 25clean:
16 # @export PATH=/usr/local/bin:$(PATH) 26 # @export PATH=/usr/local/bin:$(PATH)
17 ${NANT} clean 27 -${NANT} clean
18 28
19test: prebuild 29test: prebuild
20 ${NANT} test 30 ${NANT} test