applying patch by @mic92

less buggy test for interpreter
This commit is contained in:
Wolf 2016-10-28 16:17:40 +02:00 committed by GitHub
parent 12836aa730
commit 1a24696be5
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,4 @@
INTERPRETER := ruby
GENERATOR='./generate.rb'
MAKE_TARGETS=$(patsubst dates/%.yaml, dates/%/ALL, $(wildcard dates/*.yaml))
@ -12,7 +13,8 @@ clean:
dates/%/Makefile: dates/%.yaml $(wildcard decks/*.yaml)
mkdir -p $(shell dirname $@)
$(GENERATOR) $< $(shell dirname $@) || printf "\033[1;31minterpreter or script missing\033[0m\n"
command -v $(INTERPRETER) || (printf "Could not find '%s' Please install or add it to PATH!\n" $(INTERPRETER); exit 1)
$(INTERPRETER) $(GENERATOR) $< $(shell dirname $@)
dates/%/ALL: dates/%/Makefile
$(MAKE) -C $(shell dirname $@)