Index: trunk/Ohana/Makefile
===================================================================
--- trunk/Ohana/Makefile	(revision 2631)
+++ trunk/Ohana/Makefile	(revision 2833)
@@ -72,7 +72,10 @@
 LIBS-lin64 = libfits libohana libdummy
 LIBS-sid   = libfits libohana libdummy
+LIBS-sol   = libfits libohana
 
 # general build targets:
 libs:
+	@if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
+	@if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
 	mkdir -p $(LINC)
 	mkdir -p $(LLIB)
@@ -90,4 +93,6 @@
 
 clean:
+	@if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
+	@if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
 	for i in $(LIBS-$(ARCH)); do make $$i.clean || exit; done
 	for i in $(PROGRAM); do make $$i.clean || exit; done
@@ -95,8 +100,12 @@
 
 dist:
+	@if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
+	@if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
 	for i in $(LIBS-$(ARCH)); do make $$i.dist || exit; done
 	for i in $(PROGRAM); do make $$i.dist || exit; done
 
 install:
+	@if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
+	@if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
 	for i in $(LIBS-$(ARCH)); do make $$i.install || exit; done
 	for i in $(PROGRAM); do make $$i.install || exit; done
@@ -107,12 +116,12 @@
 # standard rules: targets are foo, foo.clean, foo.install, foo.dist
 $(PROGRAM) $(LIBS-$(ARCH)) $(EXTRAS): 
-	if [ -e "src/$@" ]; then (cd src/$@ && make); fi
+	if [ -d "src/$@" ]; then (cd src/$@ && make); fi
 
 %.install:
 	mkdir -p bin/$(ARCH)
-	if [ -e "src/$*" ]; then (cd src/$* && make install); fi
+	if [ -d "src/$*" ]; then (cd src/$* && make install); fi
 
 %.clean:
-	if [ -e "src/$*" ]; then (cd src/$* && make clean); fi
+	if [ -d "src/$*" ]; then (cd src/$* && make clean); fi
 
 %.dist:
