making Makefile a bit more robust: can now cope with missing ruby in a

better way.
remotes/origin/0.6.7-post-fixes
dr scofield (aka dirk husemann) 2009-09-03 18:31:02 +02:00
parent 9696481a64
commit 01242c5ccb
1 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,14 @@
# 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
all: prebuild
# @export PATH=/usr/local/bin:$(PATH)
@ -14,7 +24,7 @@ prebuild:
clean:
# @export PATH=/usr/local/bin:$(PATH)
${NANT} clean
-${NANT} clean
test: prebuild
${NANT} test