rust: always update Cargo.lock.in

On a normal project where the Cargo.lock is checked in, it would be
normal to see an updated Cargo.lock in git status and the like. As we
use autoconf to generate this file, we should just copy it back to the
input file so we get the same convenience of seeing when it is
updated, which usually means it needs to be checked in.

However, to satisfy "make distcheck", only copy it if the input
template exists, if the input template does not exist we are in an out
of tree build.
pull/13016/head
Jason Ish 1 year ago committed by Victor Julien
parent cff611a284
commit 0e65cccc09

@ -74,6 +74,9 @@ all-local: Cargo.toml
fi
$(MAKE) gen/rust-bindings.h
$(MAKE) gen/htp/htp_rs.h
if test -e Cargo.lock.in; then \
cp Cargo.lock Cargo.lock.in; \
fi
install-exec-local:
install -d -m 0755 "$(DESTDIR)$(bindir)"

Loading…
Cancel
Save