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