]> git.lyx.org Git - lyx.git/blob - Makefile.am
Add string << operators for the other streams as well, and removes
[lyx.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2 DISTCLEANFILES = -r *.orig *.rej *~ *.bak lyx.1 core $(srcdir)/sourcedoc/*~ \
3         $(srcdir)/sourcedoc/html $(srcdir)/sourcedoc/latex \
4         $(srcdir)/sourcedoc/man $(srcdir)/sourcedoc/Doxyfile
5 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in $(srcdir)/aclocal.m4 \
6         $(srcdir)/configure $(srcdir)/development/lyx.spec \
7         $(srcdir)/acinclude.m4 $(srcdir)/sourcedoc/Doxyfile
8 SUBDIRS = intl po sigc++ boost src lib
9
10 EXTRA_DIST = ANNOUNCE INSTALL.OS2 INSTALL.autoconf README.OS2 \
11         UPGRADING lyx.man acconfig.h autogen.sh \
12         config development forms images sourcedoc
13
14 #ETAGS_ARGS = --language-force=c++
15 man_MANS = lyx.1
16
17 ## Needed by bindist
18 bindistdir=lyxbin
19 bindistfile=$(PACKAGE)-$(VERSION)-bin.tar.gz
20
21 lyx.1:
22         cp -p $(srcdir)/lyx.man lyx.1
23
24 dist-hook:
25         cd $(distdir) ; rm -rf `find config -name \*CVS\*` ; \
26         rm -rf `find development -name \*CVS\*` ; \
27         rm -rf `find forms -name \*CVS\*` ; \
28         rm -rf `find images -name \*CVS\*`
29
30 rpmdist: dist
31         ln -s lib/images/lyx.xpm . ; \
32         rpm -ta ${PACKAGE}-${VERSION}.tar.gz ; saved_status=$$?; \
33         rm lyx.xpm; exit $$saved_status
34
35
36 bindist:
37         mkdir $(bindistdir)
38         if test -f README.bin ; then \
39           $(INSTALL) README.bin  $(bindistdir)/README.bin ; \
40         fi 
41         $(MAKE) $(AM_MAKEFLAGS) install-strip prefix=`pwd`/$(bindistdir)
42         (cd $(bindistdir) ; tar cf - .) | gzip >$(bindistfile)
43         rm -rf $(bindistdir)
44         @if test -f README.bin ; then \
45           echo "*** Did you remember to check the contents of README.bin?" ; \
46         else \
47           echo "*** WARNING: You did not provide a README.bin file." ; \
48           echo "*** Please make one now from the example file" ; \
49           echo "***   development/tools/README.bin.example" ; \
50         fi  
51         @echo "*** It should mention any problem concerning your binary"
52         @echo "*** distribution and refer to *you* in case of problem."
53         @echo "*** $(bindistfile) has been created."
54
55
56 doxydoc: sourcedoc/Doxyfile
57         cd sourcedoc; \
58         doxygen ./Doxyfile
59
60 sourcedoc/Doxyfile: sourcedoc/Doxyfile.in config.status
61         cd $(top_builddir) \
62         && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
63
64 lgbtags:
65         etags --totals=yes --recurse=yes -o TAGS $(top_srcdir)/*
66
67 .PHONY: sourcedoc