update/add/disable translations
[claws.git] / tools / Makefile.am
1 # Copyright 1999-2016 the Claws Mail team.
2 # This file is part of Claws Mail package, and distributed under the
3 # terms of the General Public License version 3 (or later).
4 # See COPYING file for license details.
5
6 EXTRA_TOOLS = \
7         OOo2claws-mail.pl \
8         acroread2claws-mail.pl \
9         calypso_convert.pl \
10         claws-mail-compose-insert-files.pl \
11         cm-reparent.pl \
12         convert_mbox.pl \
13         csv2addressbook.pl \
14         eud2gc.py \
15         filter_conv.pl \
16         filter_conv_new.pl \
17         fix_date.sh \
18         gif2xface.pl \
19         google_msgid.pl \
20         google_search.pl \
21         kmail2claws-mail.pl \
22         kmail2claws-mail_v2.pl \
23         kmail-mailbox2claws-mail.pl \
24         mairix.sh \
25         mew2claws-mail.pl \
26         multiwebsearch.pl \
27         nautilus2claws-mail.sh \
28         outlook2claws-mail.pl \
29         popfile-link.sh \
30         tb2claws-mail \
31         tbird2claws.py \
32         textviewer.pl \
33         textviewer.sh \
34         thunderbird-filters-convertor.pl \
35         update-po \
36         uudec \
37         uuooffice \
38         vcard2xml.py \
39         kdeservicemenu/install.sh \
40         kdeservicemenu/claws-mail-kdeservicemenu.pl
41
42 EXTRA_DIST = \
43         README \
44         ca-certificates.crt \
45         multiwebsearch.conf \
46         kdeservicemenu/README \
47         kdeservicemenu/claws-mail-attach-files.desktop.template \
48         kdeservicemenu/claws-mail-attach-files.desktop.kde4template \
49         $(EXTRA_TOOLS)
50
51 MAKE_EXE = chmod u+x $(EXTRA_TOOLS)
52
53 all-local:
54         if [ ! -d kdeservicemenu -a ! -e kdeservicemenu ]; then \
55         mkdir kdeservicemenu; \
56         fi; \
57         for file in $(EXTRA_TOOLS); do \
58         if [ ! -e ${top_builddir}/tools/$$file ]; then \
59         todir=${top_builddir}/tools; \
60         dir=$$(dirname $$file); \
61         if [ ! $$dir = . ]; then \
62         todir=$$todir/$$dir; \
63         fi; \
64         cp ${top_srcdir}/tools/$$file $$todir; \
65         fi; \
66         done;
67         $(MAKE_EXE)
68
69 distclean-local:
70         if [ ! ${top_builddir} = ${top_srcdir} ]; then \
71         for file in $(EXTRA_TOOLS); do \
72         rm -f $$file; \
73         done; \
74         if [ -d kdeservicemenu ]; then \
75         rmdir --ignore-fail-on-non-empty kdeservicemenu; \
76         fi; \
77         fi
78
79 if PLATFORM_WIN32
80 install-data-local:
81         mkdir -p ${pkgdatadir}
82         cp ${top_srcdir}/tools/ca-certificates.crt ${pkgdatadir}/
83 endif