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