make full copy of client lib C++ sources,

added src/client-api-diff target to compare against original sources


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@53 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
Patrick Ohly 2006-03-18 18:07:48 +00:00
parent d273c5f5bd
commit 067e8fc973
2 changed files with 9 additions and 2 deletions

View file

@ -19,7 +19,7 @@ if test ! "$SYNC4J"; then
# make a copy of the sources
AC_MSG_NOTICE( [updating the content of src/client-api from $SYNC4JSRC] )
mkdir -p src/client-api
if cp --link --update --archive $SYNC4JSRC/* src/client-api; then true; else
if cp --update --archive $SYNC4JSRC/* src/client-api; then true; else
AC_MSG_ERROR( [copying $SYNC4JSRC into src/client-api failed] )
fi
else
@ -62,6 +62,7 @@ AC_SUBST(SYNC4J_CFLAGS)
AC_SUBST(SYNC4J_LIBS)
AC_SUBST(SYNC4J)
AC_SUBST(SYNC4J_SUBDIR)
AC_SUBST(SYNC4JSRC)
pkg_emodules_10="evolution-data-server-1.0 libebook-1.0 libecal-1.0 libedata-book-1.0 libedata-cal-1.0 libedataserver-1.0"
pkg_emodules_11="evolution-data-server-1.1 libebook-1.1 libecal-1.1 libedata-book-1.1 libedata-cal-1.1 libedataserver-1.1"

View file

@ -48,6 +48,7 @@ test_LDADD = $(CORE_LDADD)
# Installing its source is done explicitly.
#
# The path may be empty!
SYNC4JSRC = @SYNC4JSRC@
SYNC4J_SUBDIR = @SYNC4J_SUBDIR@
BUILT_SOURCES = $(SYNC4J_SUBDIR)/all
MAINTAINERCLEANFILES = Makefile.in
@ -64,7 +65,7 @@ $(SYNC4J_SUBDIR)/maintainer-clean $(SYNC4J_SUBDIR)/distclean :
rm -rf $(SYNC4J_SUBDIR) client-api
$(SYNC4J_SUBDIR)/distdir :
[ ! "$(SYNC4J_SUBDIR)" ] || ( cp -a client-api $(distdir) && ( find $(distdir)/client-api -name .libs -o -name "*.o" -o -name "*.lo" -o -name CVS -name autom4te.cache | xargs rm -rf ) )
[ ! "$(SYNC4J_SUBDIR)" ] || ( cp -r client-api $(distdir) && ( find $(distdir)/client-api -name .libs -o -name "*.o" -o -name "*.lo" -o -name CVS -name autom4te.cache | xargs rm -rf ) )
# rule to satisfy automatic dependencies on header files
$(SYNC4J_SUBDIR)/%.h :
@ -74,6 +75,11 @@ $(SYNC4J_SUBDIR)/%.h :
$(SYNC4J_SUBDIR)/% :
[ ! "$(SYNC4J_SUBDIR)" ] || ( cd ${@D} && $(MAKE) ${@F} )
# compare the local copy of the C++ client library against
# the files where it was copied from
client-api-diff :
diff -r -c -x CVS -x '.#*' -x '*~' $(SYNC4JSRC) client-api
# special target for testing with valgrind
valgrind : test
valgrind --leak-check=yes --suppressions=valgrind.supp ./test