2012-10-03 [mones] 3.8.1cvs82
[claws.git] / tools / Makefile.am
1 EXTRA_TOOLS = \
2         OOo2claws-mail.pl \
3         acroread2claws-mail.pl \
4         calypso_convert.pl \
5         claws-mail-compose-insert-files.pl \
6         convert_mbox.pl \
7         csv2addressbook.pl \
8         eud2gc.py \
9         filter_conv.pl \
10         filter_conv_new.pl \
11         fix_date.sh \
12         freshmeat_search.pl \
13         gif2xface.pl \
14         google_msgid.pl \
15         google_search.pl \
16         kmail2claws-mail.pl \
17         kmail2claws-mail_v2.pl \
18         kmail-mailbox2claws-mail.pl \
19         mairix.sh \
20         mew2claws-mail.pl \
21         multiwebsearch.pl \
22         nautilus2claws-mail.sh \
23         outlook2claws-mail.pl \
24         popfile-link.sh \
25         tb2claws-mail \
26         tbird2claws.py \
27         textviewer.pl \
28         textviewer.sh \
29         thunderbird-filters-convertor.pl \
30         update-po \
31         uudec \
32         uuooffice \
33         vcard2xml.py \
34         kdeservicemenu/install.sh \
35         kdeservicemenu/claws-mail-kdeservicemenu.pl
36
37 EXTRA_DIST = \
38         README \
39         ca-certificates.crt \
40         multiwebsearch.conf \
41         kdeservicemenu/README \
42         kdeservicemenu/claws-mail-attach-files.desktop.template \
43         kdeservicemenu/claws-mail-attach-files.desktop.kde4template \
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
73
74 if PLATFORM_WIN32
75 install-data-local:
76         mkdir -p ${pkgdatadir}
77         cp ${top_srcdir}/tools/ca-certificates.crt ${pkgdatadir}/
78 endif