Index: trunk/Ohana/src/gastro2/Makefile
===================================================================
--- trunk/Ohana/src/gastro2/Makefile	(revision 2831)
+++ trunk/Ohana/src/gastro2/Makefile	(revision 2833)
@@ -14,5 +14,5 @@
 #  
 INCS	= 	-I$(INC) -I$(LINC) -I$(XINC)
-LIBS	= 	-L$(LLIB) -lFITS -lohana -lm 
+LIBS	= 	-L$(LLIB) -lFITS -lsocket -lnsl -lohana -lm 
 CFLAGS	=	-o $*.$(ARCH).o $(INCS)
 CCFLAGS	=	$(INCS) $(LIBS) 
Index: trunk/Ohana/src/libdummy/Makefile
===================================================================
--- trunk/Ohana/src/libdummy/Makefile	(revision 2831)
+++ trunk/Ohana/src/libdummy/Makefile	(revision 2833)
@@ -16,8 +16,8 @@
 	gcc -c -o dummy.o dummy.c
 	ar rcv libsocket.a dummy.o
-	ranlib libsocket.a
+	$(RANLIB) libsocket.a
 	cp libsocket.a $(DESTLIB)
 	ar rcv libnsl.a dummy.o
-	ranlib libnsl.a
+	$(RANLIB) libnsl.a
 	cp libnsl.a $(DESTLIB)
 
Index: trunk/Ohana/src/libfits/Makefile
===================================================================
--- trunk/Ohana/src/libfits/Makefile	(revision 2831)
+++ trunk/Ohana/src/libfits/Makefile	(revision 2833)
@@ -69,5 +69,5 @@
 	rm -f $(LIB)/libFITS.$(ARCH).a
 	ar rcv $(LIB)/libFITS.$(ARCH).a $(LIBOBJ)
-	ranlib $(LIB)/libFITS.$(ARCH).a
+	$(RANLIB) $(LIB)/libFITS.$(ARCH).a
 
 $(DESTLIB)/libFITS.a: $(LIB)/libFITS.$(ARCH).a 
Index: trunk/Ohana/src/libohana/Makefile
===================================================================
--- trunk/Ohana/src/libohana/Makefile	(revision 2831)
+++ trunk/Ohana/src/libohana/Makefile	(revision 2833)
@@ -39,5 +39,5 @@
 	rm -f $(LIB)/libohana.$(ARCH).a
 	ar rcv $(LIB)/libohana.$(ARCH).a $(LOBJ)
-	ranlib $(LIB)/libohana.$(ARCH).a
+	$(RANLIB) $(LIB)/libohana.$(ARCH).a
 
 $(LOBJ): $(DESTINC)/ohana.h $(DESTINC)/loneos.h
Index: trunk/Ohana/src/opihi/Makefile
===================================================================
--- trunk/Ohana/src/opihi/Makefile	(revision 2831)
+++ trunk/Ohana/src/opihi/Makefile	(revision 2833)
@@ -33,12 +33,12 @@
 
 $(PROGRAM) $(LIBS) $(EXTRAS):
-	if [ -e "$@" ]; then (cd $@ && make); fi
+	if [ -d "$@" ]; then (cd $@ && make); fi
 
 %.install:
-	if [ -e "$*" ]; then make $*; fi
-	if [ -e "$*" ]; then (cd $* && make install); fi
+	if [ -d "$*" ]; then make $*; fi
+	if [ -d "$*" ]; then (cd $* && make install); fi
 
 %.clean:
-	if [ -e "$*" ]; then (cd $* && make clean); fi
+	if [ -d "$*" ]; then (cd $* && make clean); fi
 
 .PHONY: $(PROGRAM) $(LIBS)
Index: trunk/Ohana/src/opihi/cmd.astro/Makefile
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/Makefile	(revision 2831)
+++ trunk/Ohana/src/opihi/cmd.astro/Makefile	(revision 2833)
@@ -76,5 +76,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: trunk/Ohana/src/opihi/cmd.basic/Makefile
===================================================================
--- trunk/Ohana/src/opihi/cmd.basic/Makefile	(revision 2831)
+++ trunk/Ohana/src/opihi/cmd.basic/Makefile	(revision 2833)
@@ -76,5 +76,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: trunk/Ohana/src/opihi/cmd.data/Makefile
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/Makefile	(revision 2831)
+++ trunk/Ohana/src/opihi/cmd.data/Makefile	(revision 2833)
@@ -138,5 +138,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: trunk/Ohana/src/opihi/dimm/Makefile
===================================================================
--- trunk/Ohana/src/opihi/dimm/Makefile	(revision 2831)
+++ trunk/Ohana/src/opihi/dimm/Makefile	(revision 2833)
@@ -85,5 +85,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: trunk/Ohana/src/opihi/dvo/Makefile
===================================================================
--- trunk/Ohana/src/opihi/dvo/Makefile	(revision 2831)
+++ trunk/Ohana/src/opihi/dvo/Makefile	(revision 2833)
@@ -117,5 +117,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: trunk/Ohana/src/opihi/dvo2/Makefile
===================================================================
--- trunk/Ohana/src/opihi/dvo2/Makefile	(revision 2831)
+++ trunk/Ohana/src/opihi/dvo2/Makefile	(revision 2833)
@@ -65,5 +65,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: trunk/Ohana/src/opihi/lib.data/Makefile
===================================================================
--- trunk/Ohana/src/opihi/lib.data/Makefile	(revision 2831)
+++ trunk/Ohana/src/opihi/lib.data/Makefile	(revision 2833)
@@ -60,5 +60,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: trunk/Ohana/src/opihi/lib.shell/Makefile
===================================================================
--- trunk/Ohana/src/opihi/lib.shell/Makefile	(revision 2831)
+++ trunk/Ohana/src/opihi/lib.shell/Makefile	(revision 2833)
@@ -85,5 +85,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: trunk/Ohana/src/opihi/lib.shell/stack_math.c
===================================================================
--- trunk/Ohana/src/opihi/lib.shell/stack_math.c	(revision 2831)
+++ trunk/Ohana/src/opihi/lib.shell/stack_math.c	(revision 2833)
@@ -1114,8 +1114,8 @@
   if (!strcmp (op, "sqrt"))  {    *out = sqrt (*M1);          }
 
-  if (!strcmp (op, "sinh"))  {    *out = sinhf (*M1);         }
-  if (!strcmp (op, "cosh"))  {    *out = coshf (*M1);         }
-  if (!strcmp (op, "asinh")) {    *out = asinhf (*M1);        }
-  if (!strcmp (op, "acosh")) {    *out = acoshf (*M1);        }
+  if (!strcmp (op, "sinh"))  {    *out = sinh (*M1);         }
+  if (!strcmp (op, "cosh"))  {    *out = cosh (*M1);         }
+  if (!strcmp (op, "asinh")) {    *out = asinh (*M1);        }
+  if (!strcmp (op, "acosh")) {    *out = acosh (*M1);        }
 
   if (!strcmp (op, "sin"))   {    *out = sin (*M1);           }
@@ -1170,8 +1170,8 @@
   if (!strcmp (op, "sqrt"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = sqrt(*M1);         }}
 
-  if (!strcmp (op, "sinh"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = sinhf(*M1);       }}
-  if (!strcmp (op, "cosh"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = coshf(*M1);       }}
-  if (!strcmp (op, "asinh"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = asinhf(*M1);      }}
-  if (!strcmp (op, "acosh"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = acoshf(*M1);      }}
+  if (!strcmp (op, "sinh"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = sinh(*M1);       }}
+  if (!strcmp (op, "cosh"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = cosh(*M1);       }}
+  if (!strcmp (op, "asinh"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = asinh(*M1);      }}
+  if (!strcmp (op, "acosh"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = acosh(*M1);      }}
 
   if (!strcmp (op, "sin"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = sin(*M1);          }}
@@ -1235,8 +1235,8 @@
   if (!strcmp (op, "sqrt"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = sqrt(*M1);         }}
 
-  if (!strcmp (op, "sinh"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = sinhf(*M1);        }}
-  if (!strcmp (op, "cosh"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = coshf(*M1);        }}
-  if (!strcmp (op, "asinh")) { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = asinhf(*M1);       }}
-  if (!strcmp (op, "acosh")) { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = acoshf(*M1);       }}
+  if (!strcmp (op, "sinh"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = sinh(*M1);        }}
+  if (!strcmp (op, "cosh"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = cosh(*M1);        }}
+  if (!strcmp (op, "asinh")) { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = asinh(*M1);       }}
+  if (!strcmp (op, "acosh")) { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = acosh(*M1);       }}
 
   if (!strcmp (op, "sin"))   { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = sin(*M1);          }}
Index: trunk/Ohana/src/opihi/mana/Makefile
===================================================================
--- trunk/Ohana/src/opihi/mana/Makefile	(revision 2831)
+++ trunk/Ohana/src/opihi/mana/Makefile	(revision 2833)
@@ -77,5 +77,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: trunk/Ohana/src/opihi/pantasks/Makefile
===================================================================
--- trunk/Ohana/src/opihi/pantasks/Makefile	(revision 2831)
+++ trunk/Ohana/src/opihi/pantasks/Makefile	(revision 2833)
@@ -71,5 +71,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: trunk/Ohana/src/relphot/Makefile
===================================================================
--- trunk/Ohana/src/relphot/Makefile	(revision 2831)
+++ trunk/Ohana/src/relphot/Makefile	(revision 2833)
@@ -15,5 +15,5 @@
 #
 INCS	= 	-I$(INC) -I$(LINC) -I$(XINC)
-LIBS	= 	-L$(LLIB) -lohana -lFITS -lm 
+LIBS	= 	-L$(LLIB) -lsocket -lnsl -lohana -lFITS -lm 
 CFLAGS	=	-o $*.$(ARCH).o $(INCS)
 CCFLAGS	=	$(INCS) $(LIBS) 
Index: trunk/Ohana/src/skycalc/Makefile
===================================================================
--- trunk/Ohana/src/skycalc/Makefile	(revision 2831)
+++ trunk/Ohana/src/skycalc/Makefile	(revision 2833)
@@ -33,5 +33,5 @@
 	rm -f $(LIB)/libskycalc.$(ARCH).a
 	ar rcv $(LIB)/libskycalc.$(ARCH).a $(OBJ)
-	ranlib $(LIB)/libskycalc.$(ARCH).a
+	$(RANLIB) $(LIB)/libskycalc.$(ARCH).a
 
 $(DESTLIB)/libskycalc.a: $(LIB)/libskycalc.$(ARCH).a 
