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