From eef3f4d3c1256a059e3aee50d19f3d9dba3475a8 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Sat, 28 Aug 2021 06:02:43 +0200 Subject: [PATCH] Use the $< automatic variable. That's the name of the first prerequisite. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 77a60e4..d41c60c 100644 --- a/Makefile +++ b/Makefile @@ -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 $@ $<