aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-02-07 07:24:45 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-02-07 07:24:45 +0800
commit292e7184f665e30b1e1239b34065ada089e31b29 (patch)
treebe3687ad227828c76688c68bedf40b9e0256f1a4 /addressbook/backend/ebook
parent75b60575be726c73ace0700c52e526f869c1448f (diff)
downloadgsoc2013-evolution-292e7184f665e30b1e1239b34065ada089e31b29.tar.gz
gsoc2013-evolution-292e7184f665e30b1e1239b34065ada089e31b29.tar.zst
gsoc2013-evolution-292e7184f665e30b1e1239b34065ada089e31b29.zip
Use different tmp file names so these rules can be executed in parallel
* backend/ebook/Makefile.am (e-book-marshal.c, e-book-marshal.h): Use different tmp file names so these rules can be executed in parallel without interfering with each otehr. * backend/pas/Makefile.am: Make the ORBit compilation work properly with parallel makes (i.e. make sure it does not spawn multiple orbit-idl processes on the same IDL file at the same time). * gui/component/select-names/Makefile.am: Likewise. * backend/ebook/Makefile.am: Likewise. svn path=/trunk/; revision=19834
Diffstat (limited to 'addressbook/backend/ebook')
-rw-r--r--addressbook/backend/ebook/Makefile.am59
1 files changed, 41 insertions, 18 deletions
diff --git a/addressbook/backend/ebook/Makefile.am b/addressbook/backend/ebook/Makefile.am
index 772342041d..a1b39a6b8f 100644
--- a/addressbook/backend/ebook/Makefile.am
+++ b/addressbook/backend/ebook/Makefile.am
@@ -5,22 +5,41 @@ bin_PROGRAMS = evolution-vcard-importer \
load-pine-addressbook \
load-gnomecard-addressbook
-CORBA_SOURCE = \
- addressbook.h \
- addressbook-common.c \
- addressbook-stubs.c \
- addressbook-skels.c \
- Evolution-Composer.h \
+# CORBA stuff
+
+CORBA_ADDRESSBOOK_SOURCE_H = \
+ addressbook.h
+CORBA_ADDRESSBOOK_SOURCE_C = \
+ addressbook-common.c \
+ addressbook-stubs.c \
+ addressbook-skels.c
+CORBA_ADDRESSBOOK_IDL = $(srcdir)/../idl/addressbook.idl
+
+$(CORBA_ADDRESSBOOK_SOURCE_H): $(CORBA_ADDRESSBOOK_IDL)
+ $(ORBIT_IDL) -I $(srcdir) $(IDL_INCLUDES) $(CORBA_ADDRESSBOOK_IDL)
+
+$(CORBA_ADDRESSBOOK_SOURCE_C): $(CORBA_ADDRESSBOOK_SOURCE_H)
+
+
+CORBA_COMPOSER_SOURCE_H = \
+ Evolution-Composer.h
+CORBA_COMPOSER_SOURCE_C = \
Evolution-Composer-common.c \
Evolution-Composer-skels.c \
Evolution-Composer-stubs.c
+CORBA_COMPOSER_IDL = $(srcdir)/../../../composer/Evolution-Composer.idl
+
+CORBA_SOURCE_H = $(CORBA_COMPOSER_SOURCE_H) $(CORBA_ADDRESSBOOK_SOURCE_H)
+CORBA_SOURCE_C = $(CORBA_COMPOSER_SOURCE_C) $(CORBA_ADDRESSBOOK_SOURCE_C)
+CORBA_SOURCE = $(CORBA_SOURCE_H) $(CORBA_SOURCE_C)
+
+$(CORBA_COMPOSER_SOURCE_H): $(CORBA_COMPOSER_IDL)
+ $(ORBIT_IDL) -I $(srcdir) $(IDL_INCLUDES) $(CORBA_COMPOSER_IDL)
-idls = \
- $(srcdir)/../idl/addressbook.idl \
- $(srcdir)/../../../composer/Evolution-Composer.idl
+$(CORBA_COMPOSER_SOURCE_C): $(CORBA_COMPOSER_SOURCE_H)
-$(CORBA_SOURCE): $(idls)
- $(ORBIT_IDL) -I $(srcdir) $(IDL_INCLUDES) $(idls)
+
+# The component
INCLUDES = \
-DPREFIX=\"$(prefix)\" \
@@ -42,6 +61,10 @@ INCLUDES = \
privlib_LTLIBRARIES = libebook.la libebook-static.la
+# Make sure the libraries are not built in parallel when using a parallel make;
+# libtool can't handle that.
+libebook_static_la_DEPENDENCIES = libebook.la
+
libebook_la_SOURCES = \
$(CORBA_SOURCE) \
e-book-listener.c \
@@ -84,14 +107,14 @@ libebook_static_la_LDFLAGS = -all-static
# GLib marshalling cruft
e-book-marshal.h: e-book-marshal.list
- ( @GLIB_GENMARSHAL@ --prefix=e_book_marshal e-book-marshal.list --header > e-book-marshal.tmp \
- && mv e-book-marshal.tmp e-book-marshal.h ) \
- || ( rm -f e-book-marshal.tmp && exit 1 )
+ ( @GLIB_GENMARSHAL@ --prefix=e_book_marshal e-book-marshal.list --header > e-book-marshal.h.tmp \
+ && mv e-book-marshal.h.tmp e-book-marshal.h ) \
+ || ( rm -f e-book-marshal.h.tmp && exit 1 )
e-book-marshal.c: e-book-marshal.h
- ( @GLIB_GENMARSHAL@ --prefix=e_book_marshal e-book-marshal.list --body > e-book-marshal.tmp \
- && mv e-book-marshal.tmp e-book-marshal.c ) \
- || ( rm -f e-book-marshal.tmp && exit 1 )
+ ( @GLIB_GENMARSHAL@ --prefix=e_book_marshal e-book-marshal.list --body > e-book-marshal.c.tmp \
+ && mv e-book-marshal.c.tmp e-book-marshal.c ) \
+ || ( rm -f e-book-marshal.c.tmp && exit 1 )
MARSHAL_GENERATED = e-book-marshal.c e-book-marshal.h
@@ -181,7 +204,7 @@ BUILT_SOURCES = $(CORBA_SOURCE) $(MARSHAL_GENERATED)
CLEANFILES = $(BUILT_SOURCES)
dist-hook:
- cd $(distdir); rm -f $(BUILT_SOURCES)
+ cd $(distdir); rm -f $(BUILT_SOURCES) $(CORBA_SOURCE_C)
server_in_files = GNOME_Evolution_Addressbook_VCard_Importer.server.in \
GNOME_Evolution_Addressbook_LDIF_Importer.server.in