imag/libimagruby/Makefile
Matthias Beyer 45880b5b12 Revert the ruby build infrastructure PR.
The ruby build infrastructure PR caused our CI to get really sad, so I
revert it here.

This reverts commit

    5eaddbc6f2a4b05ac59d9e8b29d0d2226d3f2015..44e02ff8185c5ad3da6448b6caff9d2a3a9b332f
2017-02-06 15:32:23 +01:00

20 lines
407 B
Makefile

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: