Use the $< automatic variable.

That's the name of the first prerequisite.
This commit is contained in:
Cyril Brulebois 2021-08-28 06:02:43 +02:00
parent 422a0d6054
commit eef3f4d3c1
1 changed files with 3 additions and 3 deletions

View File

@ -122,14 +122,14 @@ raspi_4_bullseye.yaml: raspi_base_bullseye.yaml
%.img.sha256: %.img
echo $@
sha256sum $(@:img.sha256=img) > $@
sha256sum $< > $@
%.img.xz.sha256: %.img.xz
echo $@
sha256sum $(@:img.xz.sha256=img.xz) > $@
sha256sum $< > $@
%.img.xz: %.img
xz -f -k -z -9 $(@:.xz=)
xz -f -k -z -9 $<
%.img.bmap: %.img
bmaptool create -o $@ $<