Fix for missing depcomp
[yaz-moved-to-github.git] / Makefile.am
index ec09583..717f663 100644 (file)
@@ -1,10 +1,10 @@
-## $Id: Makefile.am,v 1.13 2002-03-23 20:09:52 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 
 
-DIST_SUBDIRS=util odr z39.50 ill zutil comstack ccl tab retrieval server lib zoom include client ztest doc
-
-SUBDIRS = @SUBDIRS_VAR@
+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