Added xzimages to clean target; keep images when preparing xzimages
This commit is contained in:
parent
c4b31783ee
commit
5add9a4a01
6
Makefile
6
Makefile
|
@ -33,7 +33,7 @@ raspi_3.yaml: raspi_master.yaml
|
|||
sha256sum $(@:sha256=img.xz) > $@
|
||||
|
||||
%.img.xz: %.img
|
||||
xz -f -z -9 $(@:.xz=)
|
||||
xz -f -k -z -9 $(@:.xz=)
|
||||
|
||||
%.img: %.yaml
|
||||
touch $(@:.img=.log)
|
||||
|
@ -47,12 +47,14 @@ _clean_yaml:
|
|||
rm -f raspi_0w.yaml raspi_2.yaml raspi_3.yaml
|
||||
_clean_images:
|
||||
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:
|
||||
rm -f raspi_0w.sha256 raspi_2.sha256 raspi_3.sha256
|
||||
_clean_logs:
|
||||
rm -f raspi_0w.log raspi_2.log raspi_3.log
|
||||
_clean_tarballs:
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue