28 lines
697 B
Makefile
Executable File
28 lines
697 B
Makefile
Executable File
#! /usr/bin/env make -f
|
|
|
|
all: json json-min html-fr html-en
|
|
|
|
json: out/calcdb.json
|
|
json-min: out/calcdb-min.json
|
|
html-fr: out/calcdb-fr.html
|
|
html-en: out/calcdb-en.html
|
|
|
|
DEPS = $(wildcard calculators/* lang/*) model.yaml tools/calcdb.py | out/
|
|
|
|
out/calcdb.json: tools/convert-json.py $(DEPS)
|
|
tools/convert-json.py > out/calcdb.json
|
|
|
|
out/calcdb-min.json: tools/convert-json.py $(DEPS)
|
|
tools/convert-json.py --min > out/calcdb-min.json
|
|
|
|
out/calcdb-fr.html: tools/render-html.py $(DEPS)
|
|
tools/render-html.py fr > out/calcdb-fr.html
|
|
|
|
out/calcdb-en.html: tools/render-html.py $(DEPS)
|
|
tools/render-html.py en > out/calcdb-en.html
|
|
|
|
%/:
|
|
@ mkdir -p $@
|
|
|
|
.PHONY: json json-min html-fr html-en
|