From 6d454e4100a01499c13d55057fdd9307437a5f87 Mon Sep 17 00:00:00 2001 From: Andrew Hughes Date: Wed, 16 Jan 2013 22:47:18 +0000 Subject: build-sys: fix out-of-tree build with vala --- diff --git a/gtk/controller/Makefile.am b/gtk/controller/Makefile.am index f2abf93..00552e8 100644 --- a/gtk/controller/Makefile.am +++ b/gtk/controller/Makefile.am @@ -76,14 +76,16 @@ spice_controller_dump_SOURCES = dump.c spice_controller_dump_LDADD = libspice-controller.la controller.vala.stamp: $(libspice_controller_la_VALASOURCES) custom.vapi - @if test -z "$(VALAC)"; then \ - echo "" ; \ - echo " *** Error: missing valac!" ; \ + @if test -z "$(VALAC)"; then \ + echo "" ; \ + echo " *** Error: missing valac!" ; \ echo " *** You must run autogen.sh or configure --enable-vala" ; \ - echo "" ; \ - exit 1 ; \ + echo "" ; \ + exit 1 ; \ fi - $(VALA_V)$(VALAC) $(VALAFLAGS) $(AM_VALAFLAGS) $(libspice_controller_la_VALASOURCES) -H spice-controller.h + $(VALA_V)$(VALAC) $(VALAFLAGS) $(AM_VALAFLAGS) \ + $(addprefix $(srcdir)/,$(libspice_controller_la_VALASOURCES)) \ + -H spice-controller.h @touch $@ $(libspice_controller_la_BUILT_SOURCES): controller.vala.stamp -- cgit v0.9.0.2-2-gbebe