2010-10-02 [mir] 3.7.6cvs50
[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 # when changing the name or location of the .desktop file,
30 # also update src/common/Makefile.am
31 gnomapdir = $(datadir)/applications
32 gnomap_DATA=claws-mail.desktop
33
34 rename-icons:
35         @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
36             mv claws-mail-64x64.png claws-mail.png
37         @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
38             mv claws-mail-128x128.png claws-mail.png
39
40 remove-icons:
41         rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
42         rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
43
44 if CLAWS_GNOME2
45 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
46
47 install-data-hook: rename-icons update-icon-cache
48 uninstall-hook: remove-icons update-icon-cache
49
50 update-icon-cache:
51         @-if test -z "$(DESTDIR)"; then                                 \
52                 echo "Updating Gtk icon cache.";                        \
53                 $(gtk_update_icon_cache);                               \
54         else                                                            \
55                 echo "*** Icon cache not updated. Remember to run:";    \
56                 echo "***";                                             \
57                 echo "***   $(gtk_update_icon_cache)";                  \
58                 echo "***";                                             \
59         fi
60 else
61
62 install-data-hook: rename-icons
63 uninstall-hook: remove-icons
64
65 endif
66
67 pkgconfigdir = $(libdir)/pkgconfig
68 pkgconfig_DATA = claws-mail.pc
69
70 clawsincludedir = $(pkgincludedir)
71 clawsinclude_HEADERS = \
72         config.h
73
74 relnotesdir = $(docdir)
75 relnotes_DATA = RELEASE_NOTES