about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-24 16:16:27 -0800
committerEric Wong <normalperson@yhbt.net>2010-12-24 16:16:27 -0800
commitc77066dd3c93d88ab91653244d36e51dc53e60d2 (patch)
tree73d5a864429ba4c5f4a8c3733f76be8d41aa1b50
parentfb001a2a1e1037597804db458a28316599fc6e83 (diff)
-rw-r--r--GNUmakefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index af95c50..a4a3301 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -26,14 +26,14 @@ test_unit := $(wildcard test/test_*.rb)
 test-unit: $(test_unit)
 
 ifeq ($(CLOGGER_PURE),)
-$(test_unit): export RUBYLIB := ext/clogger_ext:lib
+$(test_unit): RUBYLIB := ext/clogger_ext:lib:$(RUBYLIB)
 $(test_unit): ext/clogger_ext/clogger.$(DLEXT)
 else
-$(test_unit): export RUBYLIB := lib
+$(test_unit): RUBYLIB := lib:$(RUBYLIB)
 endif
 
 $(test_unit):
-        $(RUBY) $@
+        RUBYLIB=$(RUBYLIB) $(RUBY) $@
 
 test-ext:
         CLOGGER_PURE= $(MAKE) test-unit