making Makefile a bit more robust: can now cope with missing ruby in a
better way.remotes/origin/0.6.7-post-fixes
parent
9696481a64
commit
01242c5ccb
12
Makefile
12
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue