string.join(lst) -> " ".join(lst) and not "".join(lst)
[lyx.git] / Makefile.am
blobcaa94bed138e4dd84f86fc277a230c76374ff7b2
1 include $(top_srcdir)/config/common.am
3 DISTCLEANFILES += lyx.1 config.status config.cache config.log
5 MAINTAINERCLEANFILES += $(srcdir)/aclocal.m4 \
6         $(srcdir)/configure \
7         $(srcdir)/acinclude.m4
9 DIST_SUBDIRS = m4 config development intl po boost src sourcedoc lib
11 if USE_INCLUDED_BOOST
12 SUBDIRS = config development intl po boost src sourcedoc lib
13 else
14 SUBDIRS = config development intl po src sourcedoc lib
15 endif
17 EXTRA_DIST = ANNOUNCE INSTALL.autoconf RELEASE-NOTES UPGRADING \
18         INSTALL.Win32 INSTALL.MacOSX INSTALL.scons README.Win32 \
19         lyx.man autogen.sh
21 man_MANS = lyx.1
23 ## Needed by bindist
24 bindistdir=$(PWD)/lyxbin
25 bindistfile=$(PACKAGE)-$(VERSION)-bin.tar.gz
27 lyx.1:
28         cp -p $(srcdir)/lyx.man lyx.1
30 rpmdist: dist
31         $(LN_S) $(srcdir)/lib/images/lyx.xpm . ; \
32         if [ -z "`type -path rpmbuild`" ]; \
33         then \
34                 RPMBUILD=rpm; \
35         else \
36                 RPMBUILD=rpmbuild; \
37         fi; $$RPMBUILD -ta $(PACKAGE)-$(VERSION).tar.gz ; saved_status=$$?; \
38         rm lyx.xpm; exit $$saved_status
40 bindist:
41         rm -f $(bindistfile)
42         $(MAKE) $(AM_MAKEFLAGS) DESTDIR=$(bindistdir) install-strip
43         if test -f $(top_srcdir)/README.bin ; then \
44           $(INSTALL) $(top_srcdir)/README.bin \
45                 $(bindistdir)$(prefix)/README.bin ; \
46         fi
47         (cd $(bindistdir)$(prefix) ; $(AMTAR) cf - . ) | \
48         GZIP=$(GZIP_ENV) gzip > $(bindistfile)
49         -chmod -R a+w $(bindistdir) > /dev/null 2>&1 ; rm -rf $(bindistdir)
50         @if test -f $(top_srcdir)/README.bin ; then \
51           echo "*** Did you remember to check the contents of README.bin?" ; \
52         else \
53           echo "*** WARNING: You did not provide a README.bin file." ; \
54           echo "*** Please make one now from the example file" ; \
55           echo "***   development/tools/README.bin.example" ; \
56         fi
57         @echo "*** It should mention any problem concerning your binary"
58         @echo "*** distribution and refer to *you* in case of problem."
59         @echo "*** $(bindistfile) has been created."
61 doxydoc:
62         cd sourcedoc; make doxydoc
64 lgbtags:
65         etags --totals=yes --recurse=yes -o TAGS $(top_srcdir)/*
67 .PHONY: doxydoc
69 ACLOCAL_AMFLAGS = -I m4