[anjuta] Fix non-sourcedir build failures
- From: Theppitak Karoonboonyanan <tkaroonb src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjuta] Fix non-sourcedir build failures
- Date: Fri, 8 May 2009 11:09:10 -0400 (EDT)
commit 6136a041cf3eeab9b1e915407f4d71169c6c97aa
Author: Theppitak Karoonboonyanan <thep linux thai net>
Date: Fri May 8 21:06:52 2009 +0700
Fix non-sourcedir build failures
Fix make rules and CFLAGS so the whole project can be built outside source
tree. (Bug #581869)
---
configure.in | 2 +-
plugins/debug-manager/Makefile.am | 4 ++--
plugins/file-manager/Makefile.am | 6 +++---
plugins/glade/Makefile.am | 4 ++--
plugins/sourceview/Makefile.am | 4 ++--
scripts/build-schemas.mk | 4 ++--
6 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/configure.in b/configure.in
index da326ac..a9aa65f 100644
--- a/configure.in
+++ b/configure.in
@@ -267,7 +267,7 @@ PKG_CHECK_MODULES(PLUGIN_SYMBOL_DB,
dnl Setup Anjuta Library flags
dnl --------------------------
-LIBANJUTA_CFLAGS='$(GLIB_CFLAGS) $(GTK_CFLAGS) $(GDL_CFLAGS) $(GNOME_CFLAGS) $(GLADE_CFLAGS) $(DEPRECATED_FLAGS) -I$(top_srcdir) -DPACKAGE_PIXMAPS_DIR=\""$(datadir)/pixmaps/$(PACKAGE)"\" -DPACKAGE_LIB_DIR=\""$(pkglibdir)"\" -DPACKAGE_DATA_DIR=\""$(datadir)/$(PACKAGE)"\"'
+LIBANJUTA_CFLAGS='$(GLIB_CFLAGS) $(GTK_CFLAGS) $(GDL_CFLAGS) $(GNOME_CFLAGS) $(GLADE_CFLAGS) $(DEPRECATED_FLAGS) -I$(top_srcdir) -I$(top_builddir)/libanjuta -DPACKAGE_PIXMAPS_DIR=\""$(datadir)/pixmaps/$(PACKAGE)"\" -DPACKAGE_LIB_DIR=\""$(pkglibdir)"\" -DPACKAGE_DATA_DIR=\""$(datadir)/$(PACKAGE)"\"'
LIBANJUTA_LIBS='$(top_builddir)/libanjuta/libanjuta.la'
AC_SUBST(LIBANJUTA_CFLAGS)
AC_SUBST(LIBANJUTA_LIBS)
diff --git a/plugins/debug-manager/Makefile.am b/plugins/debug-manager/Makefile.am
index 80e5ff3..f3757eb 100644
--- a/plugins/debug-manager/Makefile.am
+++ b/plugins/debug-manager/Makefile.am
@@ -31,11 +31,11 @@ BUILT_SOURCES = \
anjuta-marshal.h
anjuta-marshal.h: anjuta-marshal.list
- glib-genmarshal anjuta-marshal.list --header --prefix=anjuta_marshal > $@
+ glib-genmarshal $< --header --prefix=anjuta_marshal > $@
anjuta-marshal.c: anjuta-marshal.list
echo "#include \"anjuta-marshal.h\"" > $@ && \
- glib-genmarshal anjuta-marshal.list --body --prefix=anjuta_marshal >> $@
+ glib-genmarshal $< --body --prefix=anjuta_marshal >> $@
libanjuta_debug_manager_la_SOURCES = \
$(BUILT_SOURCES) \
diff --git a/plugins/file-manager/Makefile.am b/plugins/file-manager/Makefile.am
index cc05d8e..0746f3b 100644
--- a/plugins/file-manager/Makefile.am
+++ b/plugins/file-manager/Makefile.am
@@ -59,14 +59,14 @@ libfile_manager_la_LIBADD = \
file-view-marshal.h: file-view-marshal.list
@GLIB_GENMARSHAL@ \
- --prefix=file_view_cclosure_marshal file-view-marshal.list --header > xgen-gmc \
+ --prefix=file_view_cclosure_marshal $< --header > xgen-gmc \
&& cp xgen-gmc $(@F) \
&& rm -f xgen-gmc
-file-view-marshal.c: file-view-marshal.h file-view-marshal.list
+file-view-marshal.c: file-view-marshal.list
echo "#include \"file-view-marshal.h\"" > xgen-gmc \
&& @GLIB_GENMARSHAL@ \
- --prefix=file_view_cclosure_marshal file-view-marshal.list --body >> xgen-gmc \
+ --prefix=file_view_cclosure_marshal $< --body >> xgen-gmc \
&& cp xgen-gmc $(@F) \
&& rm -f xgen-gmc
diff --git a/plugins/glade/Makefile.am b/plugins/glade/Makefile.am
index c404be1..d3760dc 100644
--- a/plugins/glade/Makefile.am
+++ b/plugins/glade/Makefile.am
@@ -28,11 +28,11 @@ marshallers_SOURCES = \
anjuta-glade-marshallers.h
anjuta-glade-marshallers.h: anjuta-glade-marshallers.list
- glib-genmarshal anjuta-glade-marshallers.list --header --prefix=anjuta_glade_marshallers > $@
+ glib-genmarshal $< --header --prefix=anjuta_glade_marshallers > $@
anjuta-glade-marshallers.c: anjuta-glade-marshallers.list anjuta-glade-marshallers.h
echo "#include \"anjuta-glade-marshallers.h\"" > $@ && \
- glib-genmarshal anjuta-glade-marshallers.list --body --prefix=anjuta_glade_marshallers >> $@
+ glib-genmarshal $< --body --prefix=anjuta_glade_marshallers >> $@
# Include paths
AM_CPPFLAGS = \
diff --git a/plugins/sourceview/Makefile.am b/plugins/sourceview/Makefile.am
index e570faf..4a23acc 100644
--- a/plugins/sourceview/Makefile.am
+++ b/plugins/sourceview/Makefile.am
@@ -38,11 +38,11 @@ BUILT_SOURCES = \
anjuta-marshal.h
anjuta-marshal.h: anjuta-marshal.list
- glib-genmarshal anjuta-marshal.list --header --prefix=anjuta_marshal > $@
+ glib-genmarshal $< --header --prefix=anjuta_marshal > $@
anjuta-marshal.c: anjuta-marshal.list
echo "#include \"anjuta-marshal.h\"" > $@ && \
- glib-genmarshal anjuta-marshal.list --body --prefix=anjuta_marshal >> $@
+ glib-genmarshal $< --body --prefix=anjuta_marshal >> $@
# The plugin
plugin_LTLIBRARIES = libanjuta-sourceview.la
diff --git a/scripts/build-schemas.mk b/scripts/build-schemas.mk
index 73f2d64..02f3d11 100644
--- a/scripts/build-schemas.mk
+++ b/scripts/build-schemas.mk
@@ -5,14 +5,14 @@ prefs_glade_schemas = $(prefs_glade_files:.glade=.schemas)
prefs_glade_schemas_DATA = $(prefs_glade_schemas)
%.schemas: %.glade
- $(top_srcdir)/scripts/glade2schema.pl $(srcdir)/$(?) > $(@)
+ $(top_srcdir)/scripts/glade2schema.pl $< > $@
prefs_ui_schemasdir = @GCONF_SCHEMA_FILE_DIR@
prefs_ui_schemas = $(prefs_ui_files:.ui=.schemas)
prefs_ui_schemas_DATA = $(prefs_ui_schemas)
%.schemas: %.ui
- $(top_srcdir)/scripts/builder2schema.pl $(srcdir)/$(?) > $(@)
+ $(top_srcdir)/scripts/builder2schema.pl $< > $@
if GCONF_SCHEMAS_INSTALL
install-data-local: $(prefs_glade_schemas) $(prefs_ui_schemas)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]