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