All sorts of minor and semi-major improvements.
[idzebra-moved-to-github.git] / Makefile.am
1 ## $Id: Makefile.am,v 1.10 2002-11-15 23:00:59 adam Exp $
2
3 AUTOMAKE_OPTIONS=foreign
4
5 EXTRA_DIST= README CHANGELOG 
6
7 SUBDIRS=util bfile dfa dict isams isamb isamc isam rset data1 \
8  recctrl tab index test examples include doc
9
10 SPEC_FILE=$(PACKAGE).spec
11
12 dist-hook:
13         cd doc; make
14         cp $(srcdir)/LICENSE* $(distdir)
15         cp $(srcdir)/*.spec $(distdir)
16         mkdir $(distdir)/win
17         for i in $(srcdir)/win/*; do \
18                 if test -f $$i; then \
19                         cp $$i $(distdir)/win; \
20                 fi; \
21         done
22         mkdir $(distdir)/debian
23         cp $(srcdir)/debian/control $(distdir)/debian
24         cp $(srcdir)/debian/changelog $(distdir)/debian
25         cp $(srcdir)/debian/rules $(distdir)/debian
26         cp $(srcdir)/debian/postinst $(distdir)/debian
27         cp $(srcdir)/debian/copyright $(distdir)/debian
28         mkdir $(distdir)/perl
29         for f in `cat $(srcdir)/perl/MANIFEST`; do \
30                 (pdir=`cd $(distdir)/perl && pwd`; \
31                 cd $(srcdir)/perl;cp --parents $$f $$pdir); \
32         done
33
34 rpm: $(PACKAGE)-$(VERSION).tar.gz
35         cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
36         rpm -ba $(SPEC_FILE)