2007-08-24 [paul] 2.10.0cvs164
[claws.git] / Makefile.am
1 EXTRA_TOOLS = \
2         OOo2claws-mail.pl \
3         acroread2claws-mail.pl \
4         claws-mail-compose-insert-files.pl \
5         calypso_convert.pl \
6         convert_mbox.pl \
7         eud2gc.py \
8         filter_conv.pl \
9         filter_conv_new.pl \
10         fix_date.sh \
11         freshmeat_search.pl \
12         gif2xface.pl \
13         google_msgid.pl \
14         google_search.pl \
15         kmail2claws-mail.pl \
16         kmail2claws-mail_v2.pl \
17         kmail-mailbox2claws-mail.pl \
18         mairix.sh \
19         mew2claws-mail.pl \
20         multiwebsearch.pl \
21         nautilus2claws-mail.sh \
22         outlook2claws-mail.pl \
23         popfile-link.sh \
24         sylprint.pl \
25         sylprint.rc \
26         tb2claws-mail \
27         tbird2claws.py \
28         textviewer.pl \
29         textviewer.sh \
30         thunderbird-filters-convertor.pl \
31         update-po \
32         uudec \
33         uuooffice \
34         vcard2xml.py \
35         kdeservicemenu/install.sh \
36         kdeservicemenu/claws-mail-kdeservicemenu.pl
37
38 EXTRA_DIST = \
39         README \
40         README.sylprint \
41         multiwebsearch.conf \
42         kdeservicemenu/README \
43         kdeservicemenu/template_claws-mail-attach-files.desktop \
44         $(EXTRA_TOOLS)
45
46 MAKE_EXE = chmod u+x $(EXTRA_TOOLS)
47
48 all-local:
49         if [ ! -d kdeservicemenu -a ! -e kdeservicemenu ]; then \
50         mkdir kdeservicemenu; \
51         fi; \
52         for file in $(EXTRA_TOOLS); do \
53         if [ ! -e ${top_builddir}/tools/$$file ]; then \
54         todir=${top_builddir}/tools; \
55         dir=$$(dirname $$file); \
56         if [ ! $$dir = . ]; then \
57         todir=$$todir/$$dir; \
58         fi; \
59         cp ${top_srcdir}/tools/$$file $$todir; \
60         fi; \
61         done;
62         $(MAKE_EXE)
63
64 distclean-local:
65         if [ ! ${top_builddir} = ${top_srcdir} ]; then \
66         for file in $(EXTRA_TOOLS); do \
67         rm -f $$file; \
68         done; \
69         if [ -d kdeservicemenu ]; then \
70         rmdir --ignore-fail-on-non-empty kdeservicemenu; \
71         fi; \
72         fi