From 4a38a09cf2d80eb14f5f0a20da46b118aa5581af Mon Sep 17 00:00:00 2001 From: Alin Gabriel Serdean Date: Tue, 27 Mar 2018 20:29:49 +0300 Subject: [PATCH] Windows: Fix broken build caused by a bad file extension The compiler (cl) complains: `ovsdb/ovsdb-server.c(689) : fatal error C1083: Cannot open include file: 'ovsdb/_server.ovsschema.inc': No such file or directory` (https://ci.appveyor.com/project/blp/ovs/build/1.0.4079#L2586) Generated compiler objects have the extension `.obj` on Windows. This patch switches to `$(OBJEXT)` instead, so the schema will be generated. Signed-off-by: Alin Gabriel Serdean aserdean@ovn.org Acked-by: Ben Pfaff --- ovsdb/automake.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovsdb/automake.mk b/ovsdb/automake.mk index c43acf7e4..b895f4292 100644 --- a/ovsdb/automake.mk +++ b/ovsdb/automake.mk @@ -120,7 +120,7 @@ OVSDB_DOT = $(run_python) $(srcdir)/ovsdb/ovsdb-dot.in EXTRA_DIST += ovsdb/_server.ovsschema CLEANFILES += ovsdb/_server.ovsschema.inc -ovsdb/ovsdb-server.o: ovsdb/_server.ovsschema.inc +ovsdb/ovsdb-server.$(OBJEXT): ovsdb/_server.ovsschema.inc ovsdb/_server.ovsschema.inc: ovsdb/_server.ovsschema $(srcdir)/build-aux/text2c $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/text2c < $< > $@.tmp $(AM_V_at)mv $@.tmp $@