add option to toggle mainwindow menubar, (hotkey F12)
[claws.git] / Makefile.am
index d2c8831817e029486d08fab4184899bd4a40d3b2..876eb4bd2444afb61a5ddfaba7e93d26f5e48edb 100644 (file)
@@ -1,7 +1,24 @@
+# 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
+AUTOMAKE_OPTIONS = dist-bzip2 dist-xz
 
 SUBDIRS = m4 po src tools config doc manual
+if BUILD_APPDATA
+SUBDIRS += appdata
+endif
+DIST_SUBDIRS = appdata $(SUBDIRS)
+
+# when changing the name or location of the .desktop file,
+# also update src/common/Makefile.am
+desktop_in_files = claws-mail.desktop.in
+desktopdir = $(datadir)/applications
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+
+@INTLTOOL_DESKTOP_RULE@
 
 EXTRA_DIST = \
        ChangeLog \
@@ -13,11 +30,10 @@ EXTRA_DIST = \
        claws-mail-128x128.png \
        claws-mail-64x64.png \
        claws-mail.pc.in \
-       claws-mail.desktop \
+       $(desktop_in_files) \
        claws-mail.png \
        autogen.sh \
        claws-features.h.in \
-       version.in \
        version
 
 # hicolor icon theme, base class of all icon themes
@@ -30,11 +46,6 @@ 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
@@ -78,6 +89,11 @@ clawsinclude_HEADERS = \
 relnotesdir = $(docdir)
 relnotes_DATA = RELEASE_NOTES
 
-dist-hook:
+dist-local: ChangeLog
+
+maintainer-clean-local:
        @rm -f ChangeLog
+       @rm -f version
+
+ChangeLog: version
        @./tools/gitlog2changelog.py 3.9.0 > ChangeLog