Currently dirs.py is not generated when Makefile is updated, so if
prefix is changed dirs.py is not updated with the new prefix.
This patch adds a Makefile dependency on dirs.py, so it's regenerated
correctly when prefix is updated.
Fixes: 943c4a325045 ("python: set ovs.dirs variables with build system values")
Signed-off-by: Timothy Redaelli <[email protected]>
---
python/automake.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/automake.mk b/python/automake.mk
index c32ac3b6a..e36094168 100644
--- a/python/automake.mk
+++ b/python/automake.mk
@@ -106,7 +106,7 @@ $(srcdir)/python/ovs/version.py: config.status
if cmp -s $(@F).tmp $@; then touch $@; rm $(@F).tmp; else mv $(@F).tmp
$@; fi
ALL_LOCAL += $(srcdir)/python/ovs/dirs.py
-$(srcdir)/python/ovs/dirs.py: python/ovs/dirs.py.template
+$(srcdir)/python/ovs/dirs.py: python/ovs/dirs.py.template Makefile
$(AM_V_GEN)sed \
-e '/^##/d' \
-e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \
@@ -115,7 +115,7 @@ $(srcdir)/python/ovs/dirs.py: python/ovs/dirs.py.template
-e 's,[@]bindir[@],$(bindir),g' \
-e 's,[@]sysconfdir[@],$(sysconfdir),g' \
-e 's,[@]DBDIR[@],$(sysconfdir)/openvswitch,g' \
- < $? > [email protected] && \
+ < $(srcdir)/python/ovs/dirs.py.template > [email protected] && \
mv [email protected] $@
EXTRA_DIST += python/ovs/dirs.py.template
CLEANFILES += python/ovs/dirs.py
--
2.35.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev