Use the $< automatic variable.
That's the name of the first prerequisite.
This commit is contained in:
parent
422a0d6054
commit
eef3f4d3c1
6
Makefile
6
Makefile
|
@ -122,14 +122,14 @@ raspi_4_bullseye.yaml: raspi_base_bullseye.yaml
|
||||||
|
|
||||||
%.img.sha256: %.img
|
%.img.sha256: %.img
|
||||||
echo $@
|
echo $@
|
||||||
sha256sum $(@:img.sha256=img) > $@
|
sha256sum $< > $@
|
||||||
|
|
||||||
%.img.xz.sha256: %.img.xz
|
%.img.xz.sha256: %.img.xz
|
||||||
echo $@
|
echo $@
|
||||||
sha256sum $(@:img.xz.sha256=img.xz) > $@
|
sha256sum $< > $@
|
||||||
|
|
||||||
%.img.xz: %.img
|
%.img.xz: %.img
|
||||||
xz -f -k -z -9 $(@:.xz=)
|
xz -f -k -z -9 $<
|
||||||
|
|
||||||
%.img.bmap: %.img
|
%.img.bmap: %.img
|
||||||
bmaptool create -o $@ $<
|
bmaptool create -o $@ $<
|
||||||
|
|
Loading…
Reference in New Issue