]> git.lyx.org Git - lyx.git/blob - Makefile.am
patch from Angus and patch from Kayvan
[lyx.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2 DISTCLEANFILES= *.orig *.rej *~ *.bak lyx.1 core
3 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in $(srcdir)/aclocal.m4 \
4         $(srcdir)/configure $(srcdir)/development/lyx.spec \
5         $(srcdir)/acinclude.m4
6 SUBDIRS = intl po sigc++ src lib
7
8 EXTRA_DIST = ANNOUNCE OLD-CHANGES INSTALL.OS2 INSTALL.autoconf README.OS2 \
9         UPGRADING lyx.man acconfig.h \
10         config development forms images
11 ETAGS_ARGS = --lang=c++
12 man_MANS = lyx.1
13
14 ## Needed by bindist
15 bindistdir=lyxbin
16 bindistfile=$(PACKAGE)-$(VERSION)-bin.tar.gz
17
18 lyx.1:
19         cp -p $(srcdir)/lyx.man lyx.1
20
21 dist-hook:
22         cd $(distdir) ; rm -rf `find config -name \*CVS\*` ; \
23         rm -rf `find development -name \*CVS\*` ; \
24         rm -rf `find forms -name \*CVS\*` ; \
25         rm -rf `find images -name \*CVS\*`
26
27 rpmdist: dist
28         ln -s lib/images/lyx.xpm . ; \
29         rpm -ta ${PACKAGE}-${VERSION}.tar.gz ; \
30         rm lyx.xpm
31
32
33 bindist:
34         mkdir $(bindistdir)
35         if test -f README.bin ; then \
36           $(INSTALL) README.bin  $(bindistdir)/README.bin ; \
37         fi 
38         $(MAKE) $(AM_MAKEFLAGS) install-strip prefix=`pwd`/$(bindistdir)
39         (cd $(bindistdir) ; tar cf - .) | gzip >$(bindistfile)
40         rm -rf $(bindistdir)
41         @if test -f README.bin ; then \
42           echo "*** Did you remember to check the contents of README.bin?" ; \
43         else \
44           echo "*** WARNING: You did not provide a README.bin file." ; \
45           echo "*** Please make one now from the example file" ; \
46           echo "***   development/tools/README.bin.example" ; \
47         fi  
48         @echo "*** It should mention any problem concerning your binary"
49         @echo "*** distribution and refer to *you* in case of problem."
50         @echo "*** $(bindistfile) has been created."
51