tests: Use absolute paths for SRCDIR
authorMathias Hasselmann <mathias@openismus.com>
Thu, 6 Dec 2012 12:19:30 +0000 (13:19 +0100)
committerMathias Hasselmann <mathias@openismus.com>
Thu, 6 Dec 2012 12:19:30 +0000 (13:19 +0100)
That way a few tests can be run from top_builddir, instead of their builddir.

tests/libebook/Makefile.am
tests/libebook/client/Makefile.am
tests/libecal/client/Makefile.am

index d40c2de..48d8b6c 100644 (file)
@@ -13,7 +13,7 @@ libebook_test_utils_la_CPPFLAGS = \
        -I$(top_builddir)               \
        -I$(top_srcdir)/addressbook     \
        -I$(top_builddir)/addressbook   \
-       -DSRCDIR=\""$(srcdir)"\"        \
+       -DSRCDIR=\""$(abs_srcdir)"\"    \
        $(EVOLUTION_ADDRESSBOOK_CFLAGS) \
        $(CAMEL_CFLAGS) \
        $(NULL)
index e47fbdb..a7568fa 100644 (file)
@@ -8,7 +8,7 @@ libclient_test_utils_la_CPPFLAGS =                              \
        -I$(top_builddir)                                       \
        -I$(top_srcdir)/addressbook                             \
        -I$(top_builddir)/addressbook                           \
-       -DSRCDIR=\""$(srcdir)"\"                                \
+       -DSRCDIR=\""$(abs_srcdir)"\"                            \
        $(EVOLUTION_ADDRESSBOOK_CFLAGS)                         \
        $(CAMEL_CFLAGS)                                         \
        $(NULL)
index a3f986b..1fa8ddc 100644 (file)
@@ -8,7 +8,7 @@ libclient_test_utils_la_CPPFLAGS =                              \
        -I$(top_builddir)                                       \
        -I$(top_srcdir)/calendar                                \
        -I$(top_builddir)/calendar                              \
-       -DSRCDIR=\""$(srcdir)"\"                                \
+       -DSRCDIR=\""$(abs_srcdir)"\"                            \
        $(EVOLUTION_CALENDAR_CFLAGS)                            \
        $(CAMEL_CFLAGS)                                         \
        $(NULL)