]> git.lyx.org Git - lyx.git/blob - Makefile.am
small cleanups, mostly from John
[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
13 ETAGS_ARGS = --lang=c++
14 man_MANS = lyx.1
15
16 ## Needed by bindist
17 bindistdir=lyxbin
18 bindistfile=$(PACKAGE)-$(VERSION)-bin.tar.gz
19
20 lyx.1:
21         cp -p $(srcdir)/lyx.man lyx.1
22
23 dist-hook:
24         cd $(distdir) ; rm -rf `find config -name \*CVS\*` ; \
25         rm -rf `find development -name \*CVS\*` ; \
26         rm -rf `find forms -name \*CVS\*` ; \
27         rm -rf `find images -name \*CVS\*`
28
29 rpmdist: dist
30         ln -s lib/images/lyx.xpm . ; \
31         rpm -ta ${PACKAGE}-${VERSION}.tar.gz ; saved_status=$$?; \
32         rm lyx.xpm; exit $$saved_status
33
34
35 bindist:
36         mkdir $(bindistdir)
37         if test -f README.bin ; then \
38           $(INSTALL) README.bin  $(bindistdir)/README.bin ; \
39         fi 
40         $(MAKE) $(AM_MAKEFLAGS) install-strip prefix=`pwd`/$(bindistdir)
41         (cd $(bindistdir) ; tar cf - .) | gzip >$(bindistfile)
42         rm -rf $(bindistdir)
43         @if test -f README.bin ; then \
44           echo "*** Did you remember to check the contents of README.bin?" ; \
45         else \
46           echo "*** WARNING: You did not provide a README.bin file." ; \
47           echo "*** Please make one now from the example file" ; \
48           echo "***   development/tools/README.bin.example" ; \
49         fi  
50         @echo "*** It should mention any problem concerning your binary"
51         @echo "*** distribution and refer to *you* in case of problem."
52         @echo "*** $(bindistfile) has been created."
53
54
55 sourcedoc: sourcedoc/Doxyfile
56         cd sourcedoc; \
57         doxygen ./Doxyfile
58
59 sourcedoc/Doxyfile: sourcedoc/Doxyfile.in config.status
60         cd $(top_builddir) \
61           && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
62
63 lgbtags:
64         etags --totals=yes --recurse=yes -o TAGS $(top_srcdir)/*
65
66 .PHONY: sourcedoc