Added xzimages to clean target; keep images when preparing xzimages

This commit is contained in:
Gunnar Wolf 2020-04-24 10:37:52 -05:00
parent c4b31783ee
commit 5add9a4a01

View File

@ -33,7 +33,7 @@ raspi_3.yaml: raspi_master.yaml
sha256sum $(@:sha256=img.xz) > $@ sha256sum $(@:sha256=img.xz) > $@
%.img.xz: %.img %.img.xz: %.img
xz -f -z -9 $(@:.xz=) xz -f -k -z -9 $(@:.xz=)
%.img: %.yaml %.img: %.yaml
touch $(@:.img=.log) touch $(@:.img=.log)
@ -47,12 +47,14 @@ _clean_yaml:
rm -f raspi_0w.yaml raspi_2.yaml raspi_3.yaml rm -f raspi_0w.yaml raspi_2.yaml raspi_3.yaml
_clean_images: _clean_images:
rm -f raspi_0w.img raspi_2.img raspi_3.img rm -f raspi_0w.img raspi_2.img raspi_3.img
_clean_xzimages:
rm -f raspi_0w.img.xz raspi_2.img.xz raspi_3.img.xz
_clean_shasums: _clean_shasums:
rm -f raspi_0w.sha256 raspi_2.sha256 raspi_3.sha256 rm -f raspi_0w.sha256 raspi_2.sha256 raspi_3.sha256
_clean_logs: _clean_logs:
rm -f raspi_0w.log raspi_2.log raspi_3.log rm -f raspi_0w.log raspi_2.log raspi_3.log
_clean_tarballs: _clean_tarballs:
rm -f raspi_0w.tar.gz raspi_2.tar.gz raspi_3.tar.gz rm -f raspi_0w.tar.gz raspi_2.tar.gz raspi_3.tar.gz
clean: _clean_images _clean_shasums _clean_yaml _clean_tarballs _clean_logs clean: _clean_xzimages _clean_images _clean_shasums _clean_yaml _clean_tarballs _clean_logs
.PHONY: _ck_root _build_img clean _clean_images _clean_yaml _clean_tarballs _clean_logs .PHONY: _ck_root _build_img clean _clean_images _clean_yaml _clean_tarballs _clean_logs