Fix for missing depcomp
[yaz-moved-to-github.git] / Makefile.am
1 ## Copyright (C) 1994-2003, Index Data
2 ## All rights reserved.
3 ## $Id: Makefile.am,v 1.21 2003-05-06 11:37:18 adam Exp $
4
5 AUTOMAKE_OPTIONS = foreign 
6
7 SUBDIRS = util odr comstack z39.50 ill zutil ccl cql server include lib client ztest zoom doc etc
8
9 aclocaldir=$(datadir)/aclocal
10
11 aclocal_DATA = yaz.m4
12
13 SPEC_FILE=$(PACKAGE).spec
14 EXTRA_DIST=$(SPEC_FILE) README LICENSE CHANGELOG TODO windows.txt \
15         yaz-config.in yaz.m4
16
17 dist-hook:
18         mkdir $(distdir)/win
19         -cp $(srcdir)/win/* $(distdir)/win
20         mkdir $(distdir)/debian
21         cp $(srcdir)/debian/control $(distdir)/debian
22         cp $(srcdir)/debian/changelog $(distdir)/debian
23         cp $(srcdir)/debian/rules $(distdir)/debian
24         cp $(srcdir)/debian/postinst $(distdir)/debian
25         if test -f $(srcdir)/depcomp; then \
26                 if test -f $(distdir)/depcomp; then \
27                         echo "depcomp OK";\
28                 else \
29                         cp $(srcdir)/depcomp $(distdir)/depcomp;\
30                 fi \
31         fi
32
33 rpm: $(PACKAGE)-$(VERSION).tar.gz
34         cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
35         rpm -ba $(SPEC_FILE)