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