Fix possibly uninitialized variables; patch by Christian Hesse
[claws.git] / Makefile.am
1 # Makefile.am for toplevel directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
4
5 ACLOCAL_AMFLAGS = -I m4
6 AUTOMAKE_OPTIONS = dist-bzip2 dist-xz
7
8 SUBDIRS = m4 po src tools config doc manual
9 if BUILD_APPDATA
10 SUBDIRS += appdata
11 endif
12 DIST_SUBDIRS = appdata $(SUBDIRS)
13
14 # when changing the name or location of the .desktop file,
15 # also update src/common/Makefile.am
16 desktop_in_files = claws-mail.desktop.in
17 desktopdir = $(datadir)/applications
18 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
19
20 @INTLTOOL_DESKTOP_RULE@
21
22 EXTRA_DIST = \
23         ChangeLog \
24         ChangeLog.gtk1 \
25         ChangeLog.pre2.0.0 \
26         ChangeLog.2.0.0-3.0.0 \
27         ChangeLog.3.0.0-3.9.0 \
28         RELEASE_NOTES \
29         claws-mail-128x128.png \
30         claws-mail-64x64.png \
31         claws-mail.pc.in \
32         $(desktop_in_files) \
33         claws-mail.png \
34         autogen.sh \
35         claws-features.h.in \
36         version
37
38 # hicolor icon theme, base class of all icon themes
39 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
40 pixmap_DATA=claws-mail.png
41
42 pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
43 pixmap64_DATA=claws-mail-64x64.png
44
45 pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
46 pixmap128_DATA=claws-mail-128x128.png
47
48 rename-icons:
49         @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
50             mv claws-mail-64x64.png claws-mail.png
51         @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
52             mv claws-mail-128x128.png claws-mail.png
53
54 remove-icons:
55         rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
56         rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
57
58 if UPDATE_GTK_ICON_CACHE
59 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
60
61 install-data-hook: rename-icons update-icon-cache
62 uninstall-hook: remove-icons update-icon-cache
63
64 update-icon-cache:
65         @-if test -z "$(DESTDIR)"; then                                 \
66                 echo "Updating Gtk icon cache.";                        \
67                 $(gtk_update_icon_cache);                               \
68         else                                                            \
69                 echo "*** Icon cache not updated. Remember to run:";    \
70                 echo "***";                                             \
71                 echo "***   $(gtk_update_icon_cache)";                  \
72                 echo "***";                                             \
73         fi
74 else
75
76 install-data-hook: rename-icons
77 uninstall-hook: remove-icons
78
79 endif
80
81 pkgconfigdir = $(libdir)/pkgconfig
82 pkgconfig_DATA = claws-mail.pc
83
84 clawsincludedir = $(pkgincludedir)
85 clawsinclude_HEADERS = \
86         claws-features.h
87
88 relnotesdir = $(docdir)
89 relnotes_DATA = RELEASE_NOTES
90
91 dist-local: ChangeLog
92
93 maintainer-clean-local:
94         @rm -f ChangeLog
95         @rm -f version
96
97 ChangeLog: version
98         @./tools/gitlog2changelog.py 3.9.0 > ChangeLog