summaryrefslogtreecommitdiffstats
path: root/libimagruby/Makefile
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-01-25 11:23:21 +0100
committerGitHub <noreply@github.com>2017-01-25 11:23:21 +0100
commit1e3193ebb2028478aa26efd1b69697cddf00914f (patch)
treed1504a620dc7065f387467162d75276b311ab56c /libimagruby/Makefile
parent636bfbb768f23c92d581ab660fcaa88927c859b1 (diff)
parent4804cf36ce9a45a0300d5e78850cf55f6b8b2c2c (diff)
Merge pull request #847 from matthiasbeyer/imag-ruby
Imag ruby
Diffstat (limited to 'libimagruby/Makefile')
-rw-r--r--libimagruby/Makefile20
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: