Commit d51fb050 authored by Colomban Wendling's avatar Colomban Wendling

Fix first parallel build and out-of-tree first build

We need to explicitly declare some dependencies on generated files, as
well as specifying their real location because automatic discovery
cannot find non-existent files, and that it happens at the start of the
make run, not before every target.
parent 3cf129aa
......@@ -41,6 +41,8 @@ test_CFLAGS = $(LIBOVCC_CFLAGS)
test_LDADD = $(LIBOVCC_LIBS) -lpthread
test_SOURCES = test.c
test.c: ovcc.h
$(srcdir)/ovcc.h $(srcdir)/ovcc.vapi: libovcc_la_vala.stamp
$(lib_LTLIBRARIES): stamp-hack
......@@ -13,8 +13,10 @@ vapi_DATA = ovccclient.vapi
$(lib_LTLIBRARIES): stamp-hack
$(srcdir)/ovccclient.h $(srcdir)/ovccclient.vapi: libovccclient_la_vala.stamp
# hack: add prefix to header filename in VAPI file
stamp-hack: ovccclient.vapi
stamp-hack: $(srcdir)/ovccclient.vapi
$(AM_V_GEN) \
sed -i 's~"\(ovccclient.h\)"~"ovcc/\1"~g' $<
touch $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment