Fix for missing depcomp
[yaz-moved-to-github.git] / Makefile.am
index 4c1ea35..717f663 100644 (file)
@@ -1,10 +1,10 @@
 ## Copyright (C) 1994-2003, Index Data
 ## All rights reserved.
-## $Id: Makefile.am,v 1.18 2003-01-06 08:20:26 adam Exp $
+## $Id: Makefile.am,v 1.21 2003-05-06 11:37:18 adam Exp $
 
 AUTOMAKE_OPTIONS = foreign 
 
-SUBDIRS = util odr comstack z39.50 ill srw zutil ccl cql server include lib client ztest zoom srwapps doc etc
+SUBDIRS = util odr comstack z39.50 ill zutil ccl cql server include lib client ztest zoom doc etc
 
 aclocaldir=$(datadir)/aclocal
 
@@ -15,7 +15,6 @@ EXTRA_DIST=$(SPEC_FILE) README LICENSE CHANGELOG TODO windows.txt \
        yaz-config.in yaz.m4
 
 dist-hook:
-       cd doc; make
        mkdir $(distdir)/win
        -cp $(srcdir)/win/* $(distdir)/win
        mkdir $(distdir)/debian
@@ -23,6 +22,13 @@ dist-hook:
        cp $(srcdir)/debian/changelog $(distdir)/debian
        cp $(srcdir)/debian/rules $(distdir)/debian
        cp $(srcdir)/debian/postinst $(distdir)/debian
+       if test -f $(srcdir)/depcomp; then \
+               if test -f $(distdir)/depcomp; then \
+                       echo "depcomp OK";\
+               else \
+                       cp $(srcdir)/depcomp $(distdir)/depcomp;\
+               fi \
+       fi
 
 rpm: $(PACKAGE)-$(VERSION).tar.gz
        cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES