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