2011-02-10 [paul] 3.7.8cvs49
[claws.git] / Makefile.am
blob043f6d5ab70ef4e41245f4d79de6fc520cc8730e
1 ACLOCAL_AMFLAGS = -I m4
2 AUTOMAKE_OPTIONS = dist-bzip2
4 SUBDIRS = m4 po src tools config doc manual
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
19 # hicolor icon theme, base class of all icon themes
20 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
21 pixmap_DATA=claws-mail.png
23 pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
24 pixmap64_DATA=claws-mail-64x64.png
26 pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
27 pixmap128_DATA=claws-mail-128x128.png
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
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
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
44 if CLAWS_GNOME2
45 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
47 install-data-hook: rename-icons update-icon-cache
48 uninstall-hook: remove-icons update-icon-cache
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
62 install-data-hook: rename-icons
63 uninstall-hook: remove-icons
65 endif
67 pkgconfigdir = $(libdir)/pkgconfig
68 pkgconfig_DATA = claws-mail.pc
70 clawsincludedir = $(pkgincludedir)
71 clawsinclude_HEADERS = \
72         config.h
74 relnotesdir = $(docdir)
75 relnotes_DATA = RELEASE_NOTES