diff options
Diffstat (limited to 'libimagruby/Makefile')
-rw-r--r-- | libimagruby/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libimagruby/Makefile b/libimagruby/Makefile new file mode 100644 index 00000000..f7ed82d6 --- /dev/null +++ b/libimagruby/Makefile @@ -0,0 +1,20 @@ +ECHO=$(shell which echo) -e +RUBY=$(shell which ruby) +RUBY_TESTS=$(shell find ./test -maxdepth 1 -name "*.rb" -type f) +RUBY_TEST_TARGETS=$(foreach x,$(subst ,,$(RUBY_TESTS)),$(x)) + +all: lib + +lib: + $(MAKE) -C .. libimagruby + +lib-release: + $(MAKE) -C .. libimagruby-release + +test: lib $(RUBY_TEST_TARGETS) + +$(RUBY_TEST_TARGETS): %: lib .FORCE + @$(ECHO) "\t[TEST ]:\t$@" + @$(RUBY) $(subst -test,,$@) + +.FORCE: |