Commit 37a07b19 authored by Angus Ainslie's avatar Angus Ainslie

Makefile : couldn't find targets

The clean target couldn't remove directories
The %.img.zx wouldn't run if the im6.img didn't already exist
parent 9cce7f46
......@@ -6,21 +6,21 @@ COMPRESSED=$(IMAGE).xz
all: sha256sums
tmp/$(IMAGE).stamp $(IMAGE):
./ -b $(BOARD)
touch tmp/$(IMAGE).stamp
%.img.xz: %.img tmp/%.img.stamp
$(COMPRESSED): $(IMAGE) tmp/$(IMAGE).stamp
xz -T0 --stdout $< > $@.tmp
mv $@.tmp $@
sha256sum imx6.img.xz
sha256sum $@
sha256sums: $(COMPRESSED)
sha256sum $< > $@.tmp
mv $@.tmp $@
rm -f files/ tmp/ *.img *.img.xz sha256sums
rm -rf files/ tmp/ *.img *.img.xz sha256sums
bash -n
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