Fix bug #3109 “libravatar: make mail address lower case before hashing MD5”
[claws.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2 AUTOMAKE_OPTIONS = dist-bzip2 dist-xz
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         ChangeLog.3.0.0-3.9.0 \
12         RELEASE_NOTES \
13         claws-mail-128x128.png \
14         claws-mail-64x64.png \
15         claws-mail.pc.in \
16         claws-mail.desktop \
17         claws-mail.png \
18         autogen.sh \
19         claws-features.h.in \
20         version
21
22 # hicolor icon theme, base class of all icon themes
23 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
24 pixmap_DATA=claws-mail.png
25
26 pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
27 pixmap64_DATA=claws-mail-64x64.png
28
29 pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
30 pixmap128_DATA=claws-mail-128x128.png
31
32 # when changing the name or location of the .desktop file,
33 # also update src/common/Makefile.am
34 gnomapdir = $(datadir)/applications
35 gnomap_DATA=claws-mail.desktop
36
37 rename-icons:
38         @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
39             mv claws-mail-64x64.png claws-mail.png
40         @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
41             mv claws-mail-128x128.png claws-mail.png
42
43 remove-icons:
44         rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
45         rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
46
47 if UPDATE_GTK_ICON_CACHE
48 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
49
50 install-data-hook: rename-icons update-icon-cache
51 uninstall-hook: remove-icons update-icon-cache
52
53 update-icon-cache:
54         @-if test -z "$(DESTDIR)"; then                                 \
55                 echo "Updating Gtk icon cache.";                        \
56                 $(gtk_update_icon_cache);                               \
57         else                                                            \
58                 echo "*** Icon cache not updated. Remember to run:";    \
59                 echo "***";                                             \
60                 echo "***   $(gtk_update_icon_cache)";                  \
61                 echo "***";                                             \
62         fi
63 else
64
65 install-data-hook: rename-icons
66 uninstall-hook: remove-icons
67
68 endif
69
70 pkgconfigdir = $(libdir)/pkgconfig
71 pkgconfig_DATA = claws-mail.pc
72
73 clawsincludedir = $(pkgincludedir)
74 clawsinclude_HEADERS = \
75         claws-features.h
76
77 relnotesdir = $(docdir)
78 relnotes_DATA = RELEASE_NOTES
79
80 dist-local: ChangeLog
81
82 maintainer-clean-local:
83         @rm -f ChangeLog
84         @rm -f version
85
86 ChangeLog: version
87         @./tools/gitlog2changelog.py 3.9.0 > ChangeLog