2008-10-24 [paul] 3.6.1cvs10
[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         multiwebsearch.conf \
40         kdeservicemenu/README \
41         kdeservicemenu/claws-mail-attach-files.desktop.template \
42         $(EXTRA_TOOLS)
43
44 MAKE_EXE = chmod u+x $(EXTRA_TOOLS)
45
46 all-local:
47         if [ ! -d kdeservicemenu -a ! -e kdeservicemenu ]; then \
48         mkdir kdeservicemenu; \
49         fi; \
50         for file in $(EXTRA_TOOLS); do \
51         if [ ! -e ${top_builddir}/tools/$$file ]; then \
52         todir=${top_builddir}/tools; \
53         dir=$$(dirname $$file); \
54         if [ ! $$dir = . ]; then \
55         todir=$$todir/$$dir; \
56         fi; \
57         cp ${top_srcdir}/tools/$$file $$todir; \
58         fi; \
59         done;
60         $(MAKE_EXE)
61
62 distclean-local:
63         if [ ! ${top_builddir} = ${top_srcdir} ]; then \
64         for file in $(EXTRA_TOOLS); do \
65         rm -f $$file; \
66         done; \
67         if [ -d kdeservicemenu ]; then \
68         rmdir --ignore-fail-on-non-empty kdeservicemenu; \
69         fi; \
70         fi