Fixed problem with proto.h.
[yaz-moved-to-github.git] / Makefile.in
index 965778e..f191b33 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright (C) 1995-1999, Index Data 
 # All rights reserved.
 # Sebastian Hammer, Adam Dickmeiss
 # Copyright (C) 1995-1999, Index Data 
 # All rights reserved.
 # Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile.in,v 1.10 1999-06-08 10:16:17 adam Exp $
+# $Id: Makefile.in,v 1.11 1999-06-08 13:11:55 adam Exp $
 
 # Uncomment the lines below to enable mOSI communcation.
 #CDEFS=-DUSE_XTIMOSI
 
 # Uncomment the lines below to enable mOSI communcation.
 #CDEFS=-DUSE_XTIMOSI
@@ -22,7 +22,7 @@ CC=@CC@
 CPP=@CPP@
 SHELL=/bin/sh
 MAKE=make
 CPP=@CPP@
 SHELL=/bin/sh
 MAKE=make
-SUBDIR=util odr $(MOD) zutil $(RFC1006) ccl comstack retrieval client server ztest lib
+SUBDIR=util odr $(MOD) zutil $(RFC1006) ccl comstack client server ztest retrieval lib
 # Add external libraries to the LIBS macro
 LIBS=@LIBS@
 
 # Add external libraries to the LIBS macro
 LIBS=@LIBS@
 
@@ -41,17 +41,17 @@ INCDIR=$(prefix)/include
 YAZDIR=$(prefix)/lib/yaz
 
 all:
 YAZDIR=$(prefix)/lib/yaz
 
 all:
-       for i in $(SUBDIR); do (cd $$i; $(MAKE) CC="$(CC)" \
+       for i in $(SUBDIR); do cd $$i; if $(MAKE) CC="$(CC)" \
                RANLIB="$(RANLIB)" LIBS="$(LIBS)" \
                INCLUDE="$(INCLUDE)" CFLAGS="$(CFLAGS)" \
                CDEFS="$(CDEFS)" \
                RANLIB="$(RANLIB)" LIBS="$(LIBS)" \
                INCLUDE="$(INCLUDE)" CFLAGS="$(CFLAGS)" \
                CDEFS="$(CDEFS)" \
-               LIBMOSI="$(LIBMOSI)" XMOSI="$(XMOSI)");\
-               done
+               LIBMOSI="$(LIBMOSI)" XMOSI="$(XMOSI)";\
+               then cd ..; else exit 1; fi; done
 
 dep depend:
 
 dep depend:
-       for i in $(SUBDIR); do (cd $$i; $(MAKE) CPP="$(CPP)" \
-               INCLUDE="$(INCLUDE)" CDEFS="$(CDEFS)" depend);\
-                done
+       for i in $(SUBDIR); do cd $$i; if $(MAKE) CPP="$(CPP)" \
+               INCLUDE="$(INCLUDE)" CDEFS="$(CDEFS)" depend; \
+               then cd ..; else exit 1; fi; done
 
 clean:
        for i in $(SUBDIR); do (cd $$i; $(MAKE) clean); done
 
 clean:
        for i in $(SUBDIR); do (cd $$i; $(MAKE) clean); done