2009-11-19 [pawel] 3.7.3cvs18
[claws.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2 AUTOMAKE_OPTIONS = dist-bzip2
3
4 SUBDIRS = m4 po src tools config doc manual
5
6 EXTRA_DIST = \
7         ChangeLog \
8         ChangeLog.gtk1 \
9         ChangeLog.pre2.0.0 \
10         ChangeLog.2.0.0-3.0.0 \
11         RELEASE_NOTES \
12         claws-mail-128x128.png \
13         claws-mail-64x64.png \
14         claws-mail.pc.in \
15         claws-mail.desktop \
16         claws-mail.png \
17         autogen.sh
18
19 # hicolor icon theme, base class of all icon themes
20 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
21 pixmap_DATA=claws-mail.png
22
23 pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
24 pixmap64_DATA=claws-mail-64x64.png
25
26 pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
27 pixmap128_DATA=claws-mail-128x128.png
28
29 gnomapdir = $(datadir)/applications
30 gnomap_DATA=claws-mail.desktop
31
32 rename-icons:
33         @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
34             mv claws-mail-64x64.png claws-mail.png
35         @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
36             mv claws-mail-128x128.png claws-mail.png
37
38 remove-icons:
39         rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
40         rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
41
42 if CLAWS_GNOME2
43 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
44
45 install-data-hook: rename-icons update-icon-cache
46 uninstall-hook: remove-icons update-icon-cache
47
48 update-icon-cache:
49         @-if test -z "$(DESTDIR)"; then                                 \
50                 echo "Updating Gtk icon cache.";                        \
51                 $(gtk_update_icon_cache);                               \
52         else                                                            \
53                 echo "*** Icon cache not updated. Remember to run:";    \
54                 echo "***";                                             \
55                 echo "***   $(gtk_update_icon_cache)";                  \
56                 echo "***";                                             \
57         fi
58 else
59
60 install-data-hook: rename-icons
61 uninstall-hook: remove-icons
62
63 endif
64
65 pkgconfigdir = $(libdir)/pkgconfig
66 pkgconfig_DATA = claws-mail.pc
67
68 clawsincludedir = $(pkgincludedir)
69 clawsinclude_HEADERS = \
70         config.h
71
72 relnotesdir = $(docdir)
73 relnotes_DATA = RELEASE_NOTES