Commit a0462402 authored by Arnaud Bonatti's avatar Arnaud Bonatti

Make build work when srcdir != builddir.

parent 096e4743
......@@ -35,8 +35,7 @@ dnl ###########################################################################
dnl GResources
dnl ###########################################################################
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
AC_SUBST(GLIB_COMPILE_RESOURCES)
AC_PATH_PROG(GLIB_COMPILE_RESOURCES,glib-compile-resources)
dnl ###########################################################################
dnl Internationalization
......
......@@ -20,6 +20,7 @@ UI_FILES = \
gnome_tetravex_VALAFLAGS = \
--pkg posix \
--pkg gtk+-3.0 \
--gresources $(builddir)/gnome-tetravex.gresource.xml \
--target-glib $(GLIB_REQUIRED)
gnome_tetravex_CFLAGS = \
......@@ -35,7 +36,7 @@ gnome_tetravex_LDADD = \
-lm
gnome-tetravex-resources.c: gnome-tetravex.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies gnome-tetravex.gresource.xml)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source gnome-tetravex.gresource.xml
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $<
EXTRA_DIST = \
$(UI_FILES) \
......@@ -45,4 +46,6 @@ CLEANFILES = \
$(patsubst %.vala,%.c,$(filter %.vala, $(SOURCES))) \
*_vala.stamp
MAINTAINERCLEANFILES = gnome-tetravex-resources.c
-include $(top_srcdir)/git.mk
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