Added autoconf utility idzebra.m4 which defines --with-idzebra
[idzebra-moved-to-github.git] / Makefile.am
1 ## $Id: Makefile.am,v 1.17 2004-09-15 09:17:25 adam Exp $
2
3 AUTOMAKE_OPTIONS=foreign
4
5 SUBDIRS=util bfile dfa dict isams isamb isamc rset data1 \
6  recctrl tab index test examples include doc
7
8 aclocaldir=$(datadir)/aclocal
9 aclocal_DATA = idzebra.m4
10
11 SPEC_FILE=$(PACKAGE).spec
12
13 EXTRA_DIST= README NEWS $(SPEC_FILE) idzebra.spec.in \
14  idzebra-config.in idzebra.m4
15
16 dist-hook:
17         cp $(srcdir)/LICENSE* $(distdir)
18         mkdir $(distdir)/win
19         for i in $(srcdir)/win/*; do \
20                 if test -f $$i; then \
21                         cp $$i $(distdir)/win; \
22                 fi; \
23         done
24         mkdir $(distdir)/debian
25         cp $(srcdir)/debian/control $(distdir)/debian
26         cp $(srcdir)/debian/changelog $(distdir)/debian
27         cp $(srcdir)/debian/rules $(distdir)/debian
28         cp $(srcdir)/debian/postinst $(distdir)/debian
29         cp $(srcdir)/debian/copyright $(distdir)/debian
30         mkdir -p $(distdir)/perl
31         cd $(srcdir)/perl && ./doswig
32         for f in `cat $(srcdir)/perl/MANIFEST`; do \
33                 (pdir=`cd $(distdir)/perl && pwd`; \
34                 cd $(srcdir)/perl;cp --parents $$f $$pdir); \
35         done
36
37 rpm: $(PACKAGE)-$(VERSION).tar.gz
38         cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
39         rpm -ba $(SPEC_FILE)