Commit 591cc960 authored by Angus Ainslie's avatar Angus Ainslie Committed by Guido Gunther

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 c82d65b6
......@@ -6,21 +6,21 @@ COMPRESSED=$(IMAGE).xz
all: sha256sums
tmp/$(IMAGE).stamp: lava.sh root.sh
tmp/$(IMAGE).stamp $(IMAGE): lava.sh root.sh
./lava.sh -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 $@
clean:
rm -f files/ tmp/ *.img *.img.xz sha256sums
rm -rf files/ tmp/ *.img *.img.xz sha256sums
check:
bash -n lava.sh root.sh
......
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