complete commit 61889fd9465da61b0db28d75860a91745b7a51d5
[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         acroread2claws-mail.pl \
8         calypso_convert.pl \
9         claws-mail-compose-insert-files.pl \
10         cm-reparent.pl \
11         convert_mbox.pl \
12         csv2addressbook.pl \
13         ddg_search.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         kmail2claws-mail.pl \
21         kmail2claws-mail_v2.pl \
22         kmail-mailbox2claws-mail.pl \
23         mairix.sh \
24         mew2claws-mail.pl \
25         multiwebsearch.pl \
26         nautilus2claws-mail.sh \
27         outlook2claws-mail.pl \
28         popfile-link.sh \
29         tb2claws-mail \
30         tbird2claws.py \
31         textviewer.pl \
32         textviewer.sh \
33         thunderbird-filters-convertor.pl \
34         update-po \
35         uudec \
36         uuooffice \
37         vcard2xml.py \
38         kdeservicemenu/install.sh \
39         kdeservicemenu/claws-mail-kdeservicemenu.pl
40
41 EXTRA_DIST = \
42         README \
43         ca-certificates.crt \
44         multiwebsearch.conf \
45         kdeservicemenu/README \
46         kdeservicemenu/claws-mail-attach-files.desktop.template \
47         kdeservicemenu/claws-mail-attach-files.desktop.kde4template \
48         $(EXTRA_TOOLS)
49
50 MAKE_EXE = chmod u+x $(EXTRA_TOOLS)
51
52 all-local:
53         if [ ! -d kdeservicemenu -a ! -e kdeservicemenu ]; then \
54         mkdir kdeservicemenu; \
55         fi; \
56         for file in $(EXTRA_TOOLS); do \
57         if [ ! -e ${top_builddir}/tools/$$file ]; then \
58         todir=${top_builddir}/tools; \
59         dir=$$(dirname $$file); \
60         if [ ! $$dir = . ]; then \
61         todir=$$todir/$$dir; \
62         fi; \
63         cp ${top_srcdir}/tools/$$file $$todir; \
64         fi; \
65         done;
66         $(MAKE_EXE)
67
68 distclean-local:
69         if [ ! ${top_builddir} = ${top_srcdir} ]; then \
70         for file in $(EXTRA_TOOLS); do \
71         rm -f $$file; \
72         done; \
73         if [ -d kdeservicemenu ]; then \
74         rmdir --ignore-fail-on-non-empty kdeservicemenu; \
75         fi; \
76         fi
77
78 if PLATFORM_WIN32
79 install-data-local:
80         mkdir -p ${pkgdatadir}
81         cp ${top_srcdir}/tools/ca-certificates.crt ${pkgdatadir}/
82 endif
83
84 .PHONY: test