[gcab] build: Fix builddir != srcdir builds



commit 90ec782d6f15e6caa80084e9d8556facf30cbdd1
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Jun 2 15:37:07 2016 +0100

    build: Fix builddir != srcdir builds
    
    The paths need to include the correct top level components for generated
    files.

 Makefile.am |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index a92c156..ddd9ccf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,6 +14,9 @@ SUBDIRS = . po libgcab docs
 AM_CFLAGS = $(WARN_CFLAGS)
 AM_CPPFLAGS =                                  \
         -I$(top_srcdir)                                \
+        -I$(top_srcdir)/libgcab                        \
+       -I$(top_builddir)                       \
+       -I$(top_builddir)/libgcab               \
         -DG_LOG_DOMAIN=\"gcab\"                        \
        -DLOCALEDIR="\"$(datadir)/locale\""     \
        $(GLIB_CFLAGS)                          \
@@ -112,11 +115,11 @@ GCab_1_0_gir_LIBS = libgcab-1.0.la
 GCab_1_0_gir_FILES =                           \
        $(top_srcdir)/libgcab.h                 \
        $(top_srcdir)/libgcab/gcab-cabinet.h    \
-       $(top_srcdir)/libgcab/gcab-enums.h      \
+       $(top_builddir)/libgcab/gcab-enums.h    \
        $(top_srcdir)/libgcab/gcab-file.h       \
        $(top_srcdir)/libgcab/gcab-folder.h     \
        $(top_srcdir)/libgcab/gcab-cabinet.c    \
-       $(top_srcdir)/libgcab/gcab-enums.c      \
+       $(top_builddir)/libgcab/gcab-enums.c    \
        $(top_srcdir)/libgcab/gcab-file.c       \
        $(top_srcdir)/libgcab/gcab-folder.c     \
        $(NULL)


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