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