generate-protostrings.sh is a generated file, hence it lives in
builddir, which is not the same as srcdir in a VPATH build.
Fixes: 8aff349a ("common/protocol: Remove protostrings.sed, use bash+sed
instead.", v1.15.3)
---
common/protocol/Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/protocol/Makefile.am b/common/protocol/Makefile.am
index da7fa777..5ff5241d 100644
--- a/common/protocol/Makefile.am
+++ b/common/protocol/Makefile.am
@@ -1,5 +1,5 @@
# nbdkit
-# Copyright (C) 2018-2020 Red Hat Inc.
+# Copyright (C) 2018-2022 Red Hat Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
@@ -55,6 +55,6 @@ CLEANFILES += protostrings.c
protostrings.c: nbd-protocol.h generate-protostrings.sh Makefile
rm -f $@ $@-t
- $(srcdir)/generate-protostrings.sh > $@-t
+ $(builddir)/generate-protostrings.sh > $@-t
mv $@-t $@
chmod 0444 $@
--
2.37.3