Build: Do not swallow Mako template errors in src/components/style/properties.rs.mako

This commit is contained in:
Simon Sapin 2014-03-31 15:38:05 +01:00
parent a15f3ee0da
commit cde9a0caea
2 changed files with 4 additions and 1 deletions

View file

@ -309,7 +309,9 @@ $(AUTOGEN_SRC_script): $(BINDINGS_SRC)/%Binding.rs: $(bindinggen_dependencies) \
globalgen_dependencies := $(addprefix $(BINDINGS_SRC)/, GlobalGen.py Bindings.conf Configuration.py CodegenRust.py parser/WebIDL.py) $(CACHE_DIR)/.done
$(MAKO_style): $(MAKO_SRC_style)
PYTHONPATH=$(MAKO_ZIP) python -c "from mako.template import Template; print(Template(filename='$<').render())" > $@
# Use a temporary file to avoid writing an empty (but more recent) file on failure.
PYTHONPATH=$(MAKO_ZIP) python -c "from mako.template import Template; print(Template(filename='$<').render())" > $@.tmp
mv $@.tmp $@
$(CACHE_DIR)/.done:

View file

@ -1 +1,2 @@
properties.rs
properties.rs.tmp