Fix for missing depcomp
[yaz-moved-to-github.git] / Makefile.am
index 260c395..717f663 100644 (file)
@@ -1,8 +1,10 @@
-## $Id: Makefile.am,v 1.17 2002-10-22 12:51:18 adam Exp $
+## Copyright (C) 1994-2003, Index Data
+## All rights reserved.
+## $Id: Makefile.am,v 1.21 2003-05-06 11:37:18 adam Exp $
 
 AUTOMAKE_OPTIONS = foreign 
 
-SUBDIRS = util odr comstack z39.50 ill zutil ccl server include lib client ztest zoom doc
+SUBDIRS = util odr comstack z39.50 ill zutil ccl cql server include lib client ztest zoom doc etc
 
 aclocaldir=$(datadir)/aclocal
 
@@ -13,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
@@ -21,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