Use gtk_combo_box_new_text only if supported
[claws.git] / Makefile.am
index dce9f25e91e6e396833bd2d9f12e124896ade33a..ee4ffbd308a3eae99fabfd00d1d04ab27338dedf 100644 (file)
@@ -1,8 +1,26 @@
+# 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 dist-xz
 
 SUBDIRS = m4 po src tools config doc manual
 
+# 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@
+
+appdata_in_files = claws-mail.appdata.xml.in
+appdatadir=$(datadir)/appdata
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+
+@INTLTOOL_XML_RULE@
+
 EXTRA_DIST = \
        ChangeLog \
        ChangeLog.gtk1 \
@@ -13,8 +31,10 @@ EXTRA_DIST = \
        claws-mail-128x128.png \
        claws-mail-64x64.png \
        claws-mail.pc.in \
-       claws-mail.desktop \
+       $(desktop_in_files) \
        claws-mail.png \
+       $(appdata_DATA) \
+       $(appdata_in_files) \
        autogen.sh \
        claws-features.h.in \
        version
@@ -29,11 +49,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