[gnome-chess] Make build work when srcdir != builddir.



commit 8afc4a9d38b00f11e5d93b8016cf259f9edd75da
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Jun 2 18:14:57 2016 +0200

    Make build work when srcdir != builddir.

 src/Makefile.am |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 38e3913..da0b4f6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -38,11 +38,12 @@ gnome_chess_VALAFLAGS = \
        --pkg gtk+-3.0 \
        --pkg librsvg-2.0 \
        --pkg posix \
+       --gresources $(builddir)/chess.gresource.xml \
        --target-glib=$(GLIB_REQUIRED) \
        $(top_builddir)/lib/libchess.vapi
 
-chess-resources.c: $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies chess.gresource.xml)
-       $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source 
chess.gresource.xml
+chess-resources.c: chess.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies 
chess.gresource.xml)
+       $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $<
 
 CLEANFILES = \
        $(patsubst %.vala,%.c,$(filter %.vala, $(SOURCES))) \
@@ -50,6 +51,8 @@ CLEANFILES = \
        *.log \
        *.trs
 
+MAINTAINERCLEANFILES = chess-resources.c
+
 EXTRA_DIST = chess.gresource.xml
 
 -include $(top_srcdir)/git.mk


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]