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