]> git.lyx.org Git - lyx.git/blob - Makefile.am
first updates for 1.4.0
[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 = config development intl po boost src sourcedoc lib
13 else
14 SUBDIRS = config development intl po src sourcedoc lib
15 endif
16
17 EXTRA_DIST = ANNOUNCE INSTALL.autoconf INSTALL.Win32 \
18         INSTALL.MacOSX README.Win32 \
19         UPGRADING lyx.man autogen.sh
20
21 man_MANS = lyx.1
22
23 ## Needed by bindist
24 bindistdir=$(PWD)/lyxbin
25 bindistfile=$(PACKAGE)-$(VERSION)-bin.tar.gz
26
27 dist_noinst_DATA = \
28         images/ChangeLog \
29         images/README \
30         images/ams_arrows.xbm \
31         images/ams_misc.xbm \
32         images/ams_nrel.xbm \
33         images/ams_ops.xbm \
34         images/ams_rel.xbm \
35         images/arrows.xbm \
36         images/bop.xbm \
37         images/brel.xbm \
38         images/deco.xbm \
39         images/deco.xpm \
40         images/delim.xbm \
41         images/delim.xpm \
42         images/delim0.xpm \
43         images/delim1.xpm \
44         images/dots.xbm \
45         images/equation.xpm \
46         images/font.xbm \
47         images/frac.xpm \
48         images/greek.xbm \
49         images/matrix.xpm \
50         images/misc.xbm \
51         images/smallcaps.xpm \
52         images/space.xpm \
53         images/sqrt.xpm \
54         images/style.xbm \
55         images/style.xpm \
56         images/sub.xpm \
57         images/super.xpm \
58         images/varsz.xbm
59
60 lyx.1:
61         cp -p $(srcdir)/lyx.man lyx.1
62
63 rpmdist: dist
64         $(LN_S) $(srcdir)/lib/images/lyx.xpm . ; \
65         if [ -z "`type -path rpmbuild`" ]; \
66         then \
67                 RPMBUILD=rpm; \
68         else \
69                 RPMBUILD=rpmbuild; \
70         fi; $$RPMBUILD -ta $(PACKAGE)-$(VERSION).tar.gz ; saved_status=$$?; \
71         rm lyx.xpm; exit $$saved_status
72
73 bindist:
74         rm -f $(bindistfile)
75         $(MAKE) $(AM_MAKEFLAGS) DESTDIR=$(bindistdir) install-strip
76         if test -f $(top_srcdir)/README.bin ; then \
77           $(INSTALL) $(top_srcdir)/README.bin \
78                 $(bindistdir)$(prefix)/README.bin ; \
79         fi
80         (cd $(bindistdir)$(prefix) ; $(AMTAR) cf - . ) | \
81         GZIP=$(GZIP_ENV) gzip > $(bindistfile)
82         -chmod -R a+w $(bindistdir) > /dev/null 2>&1 ; rm -rf $(bindistdir)
83         @if test -f $(top_srcdir)/README.bin ; then \
84           echo "*** Did you remember to check the contents of README.bin?" ; \
85         else \
86           echo "*** WARNING: You did not provide a README.bin file." ; \
87           echo "*** Please make one now from the example file" ; \
88           echo "***   development/tools/README.bin.example" ; \
89         fi
90         @echo "*** It should mention any problem concerning your binary"
91         @echo "*** distribution and refer to *you* in case of problem."
92         @echo "*** $(bindistfile) has been created."
93
94 doxydoc:
95         cd sourcedoc; make doxydoc
96
97 lgbtags:
98         etags --totals=yes --recurse=yes -o TAGS $(top_srcdir)/*
99
100 .PHONY: doxydoc
101
102 ACLOCAL_AMFLAGS = -I m4