More structured README
[idzebra-moved-to-github.git] / Makefile.am
1 ## $Id: Makefile.am,v 1.4 2002-04-05 08:46:26 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
8 DIST_SUBDIRS=$(SUBDIRS) 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
23 rpm: $(PACKAGE)-$(VERSION).tar.gz
24         cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
25         rpm -ba $(SPEC_FILE)