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