Commit a4184e42 authored by Guido Gunther's avatar Guido Gunther

Makefile: use a temporary file for compression

so we rebuild properly on errors
parent d641c385
......@@ -10,7 +10,8 @@ $(IMAGE):
./ -b $(BOARD)
%.img.xz: %.img
xz -T0 --stdout $< > $@
xz -T0 --stdout $< > $@.tmp
mv $@.tmp $@
rm -f files/ *.img *.img.*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment