summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCyril Brulebois <cyril@debamax.com>2021-08-28 06:02:43 +0200
committerCyril Brulebois <cyril@debamax.com>2021-08-28 06:02:43 +0200
commiteef3f4d3c1256a059e3aee50d19f3d9dba3475a8 (patch)
tree8554914761eccf6fe3a301de37ad036da4c3f037 /Makefile
parent422a0d6054adec990ce5ca124dd1fe13af424057 (diff)
Use the $< automatic variable.
That's the name of the first prerequisite.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files 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 $@ $<