EXTRA_DIST = ANNOUNCE INSTALL.autoconf RELEASE-NOTES UPGRADING \
INSTALL.Win32 INSTALL.MacOSX INSTALL.scons INSTALL.cmake \
- README.Win32 README.Cygwin README.localization lyx.1in autogen.sh
+ README.Win32 README.Cygwin README.localization lyx.1in \
+ autogen.sh lib/lyx.desktop lib/images/lyx.svg
man_MANS = lyx.1
+if !INSTALL_WINDOWS
+if !INSTALL_MACOSX
+desktopdir = $(datadir)/applications
+desktop_DATA = lib/lyx.desktop
+endif
+endif
+
#Wait some time for bumping automake 1.11, which can use dist-xz
#directly without this code, which is to be removed.
+#xz has low compression by default, but can be affected via
+#export XZ_OPT=-9ev put somewhere in the makefile.
lyxdist: dist
bunzip2 $(PACKAGE)-$(VERSION).tar.bz2
xz -9 $(PACKAGE)-$(VERSION).tar