Skip to content

Commit

Permalink
making Makefile a bit more robust: can now cope with missing ruby in a
Browse files Browse the repository at this point in the history
better way.
  • Loading branch information
dr scofield (aka dirk husemann) committed Sep 3, 2009
1 parent 9696481 commit 01242c5
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
NANT = $(shell if test "$$EMACS" = "t" ; then echo "nant"; else echo "./nant-color"; fi)
# 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)
Expand All @@ -14,7 +24,7 @@ prebuild:

clean:
# @export PATH=/usr/local/bin:$(PATH)
${NANT} clean
-${NANT} clean

test: prebuild
${NANT} test
Expand Down

0 comments on commit 01242c5

Please sign in to comment.