lyx_mirror/Makefile.am
Jean-Marc Lasgouttes 2bf021ee73 Improve support for distributing desktop files and icons
* add proper INSTALL_POSIX conditional for makefiles
* move all the code to Makefile.am
* rename lyx.desktop to lyx.desptop.in and add proper tags to allow handling of program_suffix.
* add code to install desktop entry and icons under the proper name.

I did not touch scons and cmake, I hope it was not necessary.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40531 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-20 13:11:03 +00:00

62 lines
1.5 KiB
Makefile

include $(top_srcdir)/config/common.am
ACLOCAL_AMFLAGS = -I m4 -I config
MAINTAINERCLEANFILES += $(srcdir)/aclocal.m4 $(srcdir)/configure \
$(srcdir)/config.h.in
DIST_SUBDIRS = m4 config development intl po boost src sourcedoc lib
if BUILD_CLIENT_SUBDIR
CLIENT = src/client
endif
if USE_INCLUDED_BOOST
BOOST = boost
endif
SUBDIRS = config development intl po $(BOOST) src sourcedoc lib \
$(CLIENT) src/tex2lyx
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
man_MANS = lyx.1
#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
ls -hl $(PACKAGE)-$(VERSION).tar.*
rpmdist: dist
$(LN_S) $(srcdir)/lib/images/lyx.png . ; \
if [ -z "`type -path rpmbuild`" ]; \
then \
RPMBUILD=rpm; \
else \
RPMBUILD=rpmbuild; \
fi; $$RPMBUILD -ta $(PACKAGE)-$(VERSION).tar.gz ; saved_status=$$?; \
rm lyx.png; exit $$saved_status
doxydoc:
cd sourcedoc; make doxydoc
lfundoc:
development/tools/gen_lfuns.py src/LyXAction.cpp > lib/doc/LFUNs.lyx
keystest:
development/keystest/lyx_make.sh
lgbtags:
etags --totals=yes --recurse=yes -o TAGS $(top_srcdir)/*
.PHONY: doxydoc