Commit ff0fd850 authored by Colomban Wendling's avatar Colomban Wendling
Browse files

Add a temporary(?) hack for the VAPI to reference the right header path

parent 5e6d71de
...@@ -30,13 +30,13 @@ $(lib_LTLIBRARIES): hack-stamp ...@@ -30,13 +30,13 @@ $(lib_LTLIBRARIES): hack-stamp
# FIXME: how to force re-generation of ovcc.h and ovcc.vapi if they got removed? # FIXME: how to force re-generation of ovcc.h and ovcc.vapi if they got removed?
hack-stamp: ovcc.h ovcc.vapi hack-stamp: ovcc.h ovcc.vapi
(f=`tempfile`; trap -- "rm -f '$$f'" EXIT QUIT TERM; \ (f=`tempfile`; trap -- "rm -f '$$f'" EXIT QUIT TERM; \
ovcc_h=ovcc.h; [ -f "$$ovcc_h" ] || ovcc_h=$(srcdir)/ovcc.h; \ ovcc_h=ovcc.h; [ -f "$$ovcc_h" ] || ovcc_h="$(srcdir)/$$ovcc_h"; \
cat $(srcdir)/hack.h "$$ovcc_h" | sed '/<hack.h>/d'> "$$f" && \ cat $(srcdir)/hack.h "$$ovcc_h" | sed '/<hack.h>/d'> "$$f" && \
(echo "/* this file is auto-generated, do not modify it */" && \ (echo "/* this file is auto-generated, do not modify it */" && \
cat "$$f") > ovcc.h) cat "$$f") > ovcc.h)
(f=`tempfile`; trap -- "rm -f '$$f'" EXIT QUIT TERM; \ (f=`tempfile`; trap -- "rm -f '$$f'" EXIT QUIT TERM; \
ovcc_vapi=ovcc.vapi; [ -f "$$ovcc_vapi" ] || ovcc_h=$(srcdir)/ovcc.vapi; \ ovcc_vapi=ovcc.vapi; [ -f "$$ovcc_vapi" ] || ovcc_vapi="$(srcdir)/$$ovcc_vapi"; \
cat $(srcdir)/hack.vapi "$$ovcc_vapi" | sed 's/"hack.h"/"ovcc.h"/g' > "$$f" && \ cat $(srcdir)/hack.vapi "$$ovcc_vapi" | sed 's~"\(hack\|ovcc\).h"~"ovcc/ovcc.h"~g' > "$$f" && \
(echo "/* this file is auto-generated, do not modify it */" && \ (echo "/* this file is auto-generated, do not modify it */" && \
cat "$$f") > ovcc.vapi) cat "$$f") > ovcc.vapi)
touch $@ 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