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