]> git.lyx.org Git - lyx.git/blob - Makefile.am
small build and doc changes
[lyx.git] / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 DISTCLEANFILES += -r lyx.1 config.status config.cache config.log \
4         $(srcdir)/sourcedoc/*~ \
5         $(srcdir)/sourcedoc/html $(srcdir)/sourcedoc/latex \
6         $(srcdir)/sourcedoc/man $(srcdir)/sourcedoc/Doxyfile
7
8 MAINTAINERCLEANFILES += $(srcdir)/aclocal.m4 \
9         $(srcdir)/configure $(srcdir)/development/lyx.spec \
10         $(srcdir)/acinclude.m4
11
12 SUBDIRS = config intl po sigc++ boost src lib
13
14 EXTRA_DIST = ANNOUNCE INSTALL.OS2 INSTALL.autoconf README.OS2 \
15         UPGRADING lyx.man acconfig.h autogen.sh \
16         development images sourcedoc
17
18 # Hack so that the targets that use tar will also work with automake 1.4
19 AMTAR ?= $(TAR)
20
21 man_MANS = lyx.1
22
23 ## Needed by bindist
24 bindistdir=$(PWD)/lyxbin
25 bindistfile=$(PACKAGE)-$(VERSION)-bin.tar.gz
26
27 lyx.1:
28         cp -p $(srcdir)/lyx.man lyx.1
29
30 dist-hook:
31         cd $(distdir) ; \
32         rm -rf `find development -name \*CVS\*` ; \
33         rm -rf `find images -name \*CVS\*`
34
35 rpmdist: dist
36         ln -s lib/images/lyx.xpm . ; \
37         rpm -ta $(PACKAGE)-$(VERSION).tar.gz ; saved_status=$$?; \
38         rm lyx.xpm; exit $$saved_status
39
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."
60
61 doxydoc: sourcedoc/Doxyfile
62         cd sourcedoc; \
63         doxygen ./Doxyfile
64
65 lgbtags:
66         etags --totals=yes --recurse=yes -o TAGS $(top_srcdir)/*
67
68 .PHONY: sourcedoc