ignore generated appdata
[claws.git] / Makefile.am
index 9393b485e1269e6570a84bcc49e2d1e326d8b9ec..9065980322544c0e0e9755e185d8771d97f94cfd 100644 (file)
@@ -1,7 +1,23 @@
+# Makefile.am for toplevel directory
+# This file is part of Claws Mail package.
+# 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,7 +29,7 @@ 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 \
@@ -29,11 +45,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