mirror of https://github.com/c3d2/slidenado/
parent
12836aa730
commit
1a24696be5
4
Makefile
4
Makefile
|
@ -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 $@)
|
||||
|
|
Loading…
Reference in New Issue