mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-20 13:34:26 +01:00
Makefile: work with shasum -a as well as sha256sum.
At least on my Ubuntu box, they're compatible. If they're not, we need to disable regeneration altogether. Fixes: #4075 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
d9ba39d2cb
commit
4e67b4fd03
4
Makefile
4
Makefile
@@ -264,9 +264,9 @@ endif
|
||||
# Git doesn't maintain timestamps, so we only regen if sources actually changed:
|
||||
# We place the SHA inside some generated files so we can tell if they need updating.
|
||||
# Usage: $(call SHA256STAMP_CHANGED)
|
||||
SHA256STAMP_CHANGED = [ x"`sed -n 's/.*SHA256STAMP://p' $@ 2>/dev/null`" != x"`cat $(sort $(filter-out FORCE,$^)) | sha256sum | cut -c1-64`" ]
|
||||
SHA256STAMP_CHANGED = [ x"`sed -n 's/.*SHA256STAMP://p' $@ 2>/dev/null`" != x"`cat $(sort $(filter-out FORCE,$^)) | $(SHA256SUM) | cut -c1-64`" ]
|
||||
# Usage: $(call SHA256STAMP,commentprefix)
|
||||
SHA256STAMP = echo '$(1) SHA256STAMP:'`cat $(sort $(filter-out FORCE,$^)) | sha256sum | cut -c1-64` >> $@
|
||||
SHA256STAMP = echo '$(1) SHA256STAMP:'`cat $(sort $(filter-out FORCE,$^)) | $(SHA256SUM) | cut -c1-64` >> $@
|
||||
|
||||
# generate-wire.py --page [header|impl] hdrfilename wirename < csv > file
|
||||
%_wiregen.h: %_wire.csv $(WIRE_GEN_DEPS)
|
||||
|
||||
Reference in New Issue
Block a user