diff options
author | dr scofield (aka dirk husemann) | 2009-09-03 18:31:02 +0200 |
---|---|---|
committer | dr scofield (aka dirk husemann) | 2009-09-03 18:32:41 +0200 |
commit | 01242c5ccb5abe2cf0b1ad7ad619d606827bd4bb (patch) | |
tree | e227a45e31c5d30f726398f22b8ed664ffe23cd9 /Makefile | |
parent | another git test (diff) | |
download | opensim-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 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -1,4 +1,14 @@ | |||
1 | NANT = $(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 | |||
6 | RUBY = $(strip $(shell which ruby 2>/dev/null)) | ||
7 | ifeq ($(RUBY),) | ||
8 | NANT = nant | ||
9 | else | ||
10 | NANT = $(shell if test "$$EMACS" = "t" ; then echo "nant"; else echo "./nant-color"; fi) | ||
11 | endif | ||
2 | 12 | ||
3 | all: prebuild | 13 | all: prebuild |
4 | # @export PATH=/usr/local/bin:$(PATH) | 14 | # @export PATH=/usr/local/bin:$(PATH) |
@@ -14,7 +24,7 @@ prebuild: | |||
14 | 24 | ||
15 | clean: | 25 | clean: |
16 | # @export PATH=/usr/local/bin:$(PATH) | 26 | # @export PATH=/usr/local/bin:$(PATH) |
17 | ${NANT} clean | 27 | -${NANT} clean |
18 | 28 | ||
19 | test: prebuild | 29 | test: prebuild |
20 | ${NANT} test | 30 | ${NANT} test |