diff options
| author | Cyril Brulebois <cyril@debamax.com> | 2021-08-28 06:02:43 +0200 |
|---|---|---|
| committer | Cyril Brulebois <cyril@debamax.com> | 2021-08-28 06:02:43 +0200 |
| commit | eef3f4d3c1256a059e3aee50d19f3d9dba3475a8 (patch) | |
| tree | 8554914761eccf6fe3a301de37ad036da4c3f037 | |
| parent | 422a0d6054adec990ce5ca124dd1fe13af424057 (diff) | |
Use the $< automatic variable.
That's the name of the first prerequisite.
| -rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 $@ $< |
