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