Migrate SpamReport passwords to password store correctly.
[claws.git] / Makefile.am
index 97c77bd1d10e8bfe60466f52602b3cde9b0f3c20..3fdb4aabf4250332b5abc8c37029ad7a8e98517c 100644 (file)
@@ -1,52 +1,92 @@
-SUBDIRS = ac po src man manual faq tools config
+# Copyright 1999-2014 the Claws Mail team.
+# This file is part of Claws Mail package, and distributed under the
+# terms of the General Public License version 3 (or later).
+# See COPYING file for license details.
+
+ACLOCAL_AMFLAGS = -I m4
+AUTOMAKE_OPTIONS = dist-bzip2 dist-xz
+
+SUBDIRS = m4 po src tools config doc manual
 
 EXTRA_DIST = \
-       ChangeLog.claws \
-       ChangeLog.jp \
-       ChangeLog-gtk2 \
-       ChangeLog-gtk2.jp \
-       README.claws \
-       README.jp \
-       sylpheed-128x128.png \
-       sylpheed-64x64.png \
-       sylpheed-claws.pc.in \
-       sylpheed.desktop \
-       sylpheed.png \
-       sylpheed.spec \
-       sylpheed.spec.in \
-       TODO \
-       TODO.claws \
-       TODO.jp \
-       TODO-gtk2 \
-       TODO-gtk2.jp \
-       autogen.sh 
-
-if SYLPHEED_GNOME
-pixmapdir=$(gnomedatadir)/pixmaps
-pixmap_DATA=sylpheed.png
-gnomapdir=$(gnomedatadir)/gnome/apps/Internet
-gnomap_DATA=sylpheed.desktop
+       ChangeLog \
+       ChangeLog.gtk1 \
+       ChangeLog.pre2.0.0 \
+       ChangeLog.2.0.0-3.0.0 \
+       ChangeLog.3.0.0-3.9.0 \
+       RELEASE_NOTES \
+       claws-mail-128x128.png \
+       claws-mail-64x64.png \
+       claws-mail.pc.in \
+       claws-mail.desktop \
+       claws-mail.png \
+       autogen.sh \
+       claws-features.h.in \
+       version
+
+# hicolor icon theme, base class of all icon themes
+pixmapdir=$(datadir)/icons/hicolor/48x48/apps
+pixmap_DATA=claws-mail.png
+
+pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
+pixmap64_DATA=claws-mail-64x64.png
+
+pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
+pixmap128_DATA=claws-mail-128x128.png
+
+# when changing the name or location of the .desktop file,
+# also update src/common/Makefile.am
+gnomapdir = $(datadir)/applications
+gnomap_DATA=claws-mail.desktop
+
+rename-icons:
+       @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
+            mv claws-mail-64x64.png claws-mail.png
+       @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
+            mv claws-mail-128x128.png claws-mail.png
+
+remove-icons:
+       rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
+       rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
+
+if UPDATE_GTK_ICON_CACHE
+gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
+
+install-data-hook: rename-icons update-icon-cache
+uninstall-hook: remove-icons update-icon-cache
+
+update-icon-cache:
+       @-if test -z "$(DESTDIR)"; then                                 \
+                echo "Updating Gtk icon cache.";                       \
+                $(gtk_update_icon_cache);                              \
+        else                                                           \
+                echo "*** Icon cache not updated. Remember to run:";   \
+               echo "***";                                             \
+                echo "***   $(gtk_update_icon_cache)";                 \
+               echo "***";                                             \
+        fi
 else
-pixmapdir=
-pixmap_DATA=
-gnomapdir=
-gnomap_DATA=
-endif
 
-BZIP2_ENV =
+install-data-hook: rename-icons
+uninstall-hook: remove-icons
 
-release: distdir
-       -chmod -R a+r $(distdir)
-       GZIP=$(GZIP_ENV) $(AMTAR)$(TAR) chozf $(distdir).tar.gz $(distdir)
-       rm -f $(distdir)/sylpheed.spec
-       sed '/^Source:/s/\.tar\.gz$$/\.tar\.bz2/' sylpheed.spec \
-         > $(distdir)/sylpheed.spec
-       BZIP2=$(BZIP2_ENV) $(AMTAR)$(TAR) --bzip2 -chof $(distdir).tar.bz2 $(distdir)
-       -rm -rf $(distdir)
+endif
 
 pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = sylpheed-claws.pc
+pkgconfig_DATA = claws-mail.pc
+
+clawsincludedir = $(pkgincludedir)
+clawsinclude_HEADERS = \
+       claws-features.h
+
+relnotesdir = $(docdir)
+relnotes_DATA = RELEASE_NOTES
+
+dist-local: ChangeLog
+
+maintainer-clean-local:
+       @rm -f ChangeLog
+       @rm -f version
 
-sylpheedincludedir = $(pkgincludedir)
-sylpheedinclude_HEADERS = \
-       config.h
+ChangeLog: version
+       @./tools/gitlog2changelog.py 3.9.0 > ChangeLog