diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2017-01-25 11:23:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-25 11:23:21 +0100 |
commit | 1e3193ebb2028478aa26efd1b69697cddf00914f (patch) | |
tree | d1504a620dc7065f387467162d75276b311ab56c /libimagruby/Makefile | |
parent | 636bfbb768f23c92d581ab660fcaa88927c859b1 (diff) | |
parent | 4804cf36ce9a45a0300d5e78850cf55f6b8b2c2c (diff) |
Merge pull request #847 from matthiasbeyer/imag-ruby
Imag ruby
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: |