]> err.no Git - libchamplain/commitdiff
Fix build to work with builddir != srcdir and with with parallell make (e.g. -j3)
authorJonathon Jongsma <jonathon.jongsma@collabora.co.uk>
Thu, 11 Sep 2008 14:47:23 +0000 (09:47 -0500)
committerJonathon Jongsma <jonathon.jongsma@collabora.co.uk>
Thu, 11 Sep 2008 14:47:23 +0000 (09:47 -0500)
champlain/Makefile.am
tidy/Makefile.am

index 080a54b3c475a066c3a10da68dead8ddd29c2118..f111c0595f2c02611016ab7a4bcf5ce6a55c6826 100644 (file)
@@ -54,10 +54,10 @@ libchamplain_1_0_la_LDFLAGS= -version-info $(LIBRARY_VERSION)
 
 noinst_PROGRAMS = launcher
 
-AM_CPPFLAGS = $(DEPS_CFLAGS) -DDATADIR=\""$(datadir)"\" -I../tidy 
+AM_CPPFLAGS = $(DEPS_CFLAGS) -DDATADIR=\""$(datadir)"\" -I$(top_srcdir)/tidy -I$(top_srcdir)
 AM_LDFLAGS = $(DEPS_LIBS) -export-dynamic -export-symbols-regex ^champlain_.*
-SOURCES = launcher.c
-LDADD = $(DEPS_LIBS) $(top_builddir)/champlain/libchamplain-1.0.la
+launcher_SOURCES = launcher.c
+launcher_LDADD = $(DEPS_LIBS) libchamplain-1.0.la
 
 svgdir = $(datadir)/champlain
 svg_DATA = error.svg
index f1bedc83f52c9052d9a4037323029a253e00b518..6dda7bcdc859a6983a2af4c7f946129a70279d50 100644 (file)
@@ -69,8 +69,7 @@ tidy-marshal.c: Makefile tidy-marshal.list
 tidy-enum-types.h: stamp-tidy-enum-types.h Makefile
        @true
 stamp-tidy-enum-types.h: $(source_h) tidy-enum-types.h.in
-       ( cd $(srcdir) && \
-         $(GLIB_MKENUMS) \
+       ( $(GLIB_MKENUMS) \
            --template $(srcdir)/tidy-enum-types.h.in \
          $(source_h) ) >> xgen-teth && \
        (cmp xgen-teth tidy-enum-types.h || cp xgen-teth tidy-enum-types.h) && \
@@ -78,8 +77,7 @@ stamp-tidy-enum-types.h: $(source_h) tidy-enum-types.h.in
        echo timestamp > $(@F)
 
 tidy-enum-types.c: stamp-tidy-enum-types.h tidy-enum-types.c.in
-       ( cd $(srcdir) && \
-         $(GLIB_MKENUMS) \
+       ( $(GLIB_MKENUMS) \
            --template $(srcdir)/tidy-enum-types.c.in \
          $(source_h) ) >> xgen-tetc && \
        cp xgen-tetc tidy-enum-types.c && \