d9ba944ea0ab3075ffb2073b573a71fab20665eb
[idzebra-moved-to-github.git] / Makefile.am
1 ## $Id: Makefile.am,v 1.7 2002-09-25 09:50:20 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 recctrl tab index test include doc
8
9 SPEC_FILE=$(PACKAGE).spec
10
11 dist-hook:
12         cd doc; make
13         cp $(srcdir)/LICENSE* $(distdir)
14         cp $(srcdir)/*.spec $(distdir)
15         mkdir $(distdir)/win
16         for i in $(srcdir)/win/*; do \
17                 if test -f $$i; then \
18                         cp $$i $(distdir)/win; \
19                 fi; \
20         done
21         mkdir $(distdir)/debian
22         cp $(srcdir)/debian/control $(distdir)/debian
23         cp $(srcdir)/debian/changelog $(distdir)/debian
24         cp $(srcdir)/debian/rules $(distdir)/debian
25         cp $(srcdir)/debian/postinst $(distdir)/debian
26         cp $(srcdir)/debian/copyright $(distdir)/debian
27
28
29 rpm: $(PACKAGE)-$(VERSION).tar.gz
30         cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
31         rpm -ba $(SPEC_FILE)