2005-10-08 14:03:24 +02:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2005-12-10 20:16:02 +01:00
|
|
|
SUBDIRS = src etc
|
|
|
|
|
2006-03-12 10:48:59 +01:00
|
|
|
EXTRA_DIST = HACKING
|
2006-03-12 11:29:40 +01:00
|
|
|
MAINTAINERCLEANFILES = Makefile.in config.h.in config.guess config.sub configure depcomp install-sh ltmain.sh missing mkinstalldirs
|
2006-03-11 20:23:43 +01:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --with-sync4j=@SYNC4J@
|
|
|
|
|
|
|
|
# binary distribution
|
|
|
|
distbin : README all
|
|
|
|
@ [ "$(BINSUFFIX)" ] || (echo "please invoke with e.g. 'make distbin BINSUFFIX=debian-3.1'"; exit 1 )
|
|
|
|
rm -rf $(distdir)
|
|
|
|
$(MAKE) prefix=`pwd`/$(distdir) install
|
2006-06-12 23:33:31 +02:00
|
|
|
cp $(srcdir)/README $(srcdir)/NEWS $(srcdir)/COPYING $(distdir)
|
2006-03-11 20:23:43 +01:00
|
|
|
tar zcf $(distdir)-$(BINSUFFIX).tar.gz $(distdir)
|
|
|
|
rm -rf $(distdir)
|
2007-10-11 00:27:27 +02:00
|
|
|
|
|
|
|
iphone : SyncEvolution.plist
|
|
|
|
|
|
|
|
IPHONE_FILENAME = syncevolution-$(VERSION)-iphone.zip
|
|
|
|
|
|
|
|
SyncEvolution.plist : SyncEvolution.plist.in $(IPHONE_FILENAME)
|
|
|
|
sed -e 's/__FILENAME__/$(IPHONE_FILENAME)/' \
|
|
|
|
-e 's/__VERSION__/$(VERSION)/' \
|
|
|
|
-e 's/__SIZE__/$(shell ls -l $(IPHONE_FILENAME) | sed -e 's/ */ /g' | cut -d ' ' -f 5)/' \
|
|
|
|
$< >$@
|
|
|
|
|
|
|
|
$(IPHONE_FILENAME) : all
|
|
|
|
rm -rf syncevolution-iphone $@
|
|
|
|
$(MAKE) DESTDIR=`pwd`/syncevolution-iphone install
|
|
|
|
rm -rf `ls -1 -d syncevolution-iphone/usr/share/doc/syncevolution/*/spds/sources/* | grep -v addressbook`
|
|
|
|
perl -pi -e 's;SyncEvolution test #1;;;' \
|
|
|
|
-e 's;^type = text/(x-)?vcard;type = addressbook;m;' \
|
|
|
|
syncevolution-iphone/usr/share/doc/syncevolution/*/spds/sources/addressbook/config.txt
|
|
|
|
cd syncevolution-iphone && zip -r ../$(IPHONE_FILENAME) .
|