X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=Makefile.am;h=efcbeca75ab881bbf43770a09291b306a2c2d65f;hb=55a3dd7b346d29a52ba305a4558e9e380ef50f47;hp=31a18b010a64bed1a07bb6a277fb41671f899f5c;hpb=d90e046851b2097f6b0f6289d81a0246a36fceb1;p=lyx.git diff --git a/Makefile.am b/Makefile.am index 31a18b010a..efcbeca75a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,24 +1,68 @@ -AUTOMAKE_OPTIONS = foreign -DISTCLEANFILES= *.orig *.rej *~ *.bak lyx.1 core -MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure \ - development/lyx.spec po/POTFILES.in -SUBDIRS = intl po src lib - -EXTRA_DIST = ANNOUNCE CHANGES INSTALL.OS2 INSTALL.autoconf README.OS2 \ - UPGRADING WHATSNEW acconfig.h lyx.man \ - config development forms images -ETAGS_ARGS = --c++ +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 lib/lyx.desktop lib/images/lyx.svg + man_MANS = lyx.1 -lyx.1: - cp -p $(srcdir)/lyx.man lyx.1 -dist-hook: - cd $(distdir) ; rm -rf `find config -name \*CVS\*` ; \ - rm -rf `find development -name \*CVS\*` ; \ - rm -rf `find forms -name \*CVS\*` ; \ - rm -rf `find images -name \*CVS\*` +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 + ls -hl $(PACKAGE)-$(VERSION).tar.* rpmdist: dist - ln -s images/lyx.xpm . ; \ - rpm -ta ${PACKAGE}-${VERSION}.tar.gz ; \ - rm lyx.xpm \ No newline at end of file + $(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 +