r9990: 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
[clsql.git] / doc / Makefile
index 39c411eb6264d55856a1e2e37094f30acac22453..9f9327dfcb27c2660f3531140dd6c4b7ca4b4196 100644 (file)
@@ -21,11 +21,13 @@ DOCFILE_EXT_DEFAULT:=xml
 
 # Standard docfile processing
 
-DEBIAN=$(shell expr "`cat /etc/issue`" : '.*Debian.*')
-SUSE=$(shell expr "`cat /etc/issue`" : '.*SuSE.*')
-SUSE91=$(shell expr "`cat /etc/issue`" : '.*SuSE Linux 9.1.*')
-REDHAT=$(shell expr "`cat /etc/issue`" : '.*Red Hat.*')
-MANDRAKE=$(shell expr "`cat /etc/issue`" : '.*Mandrake.*')
+DEBIAN=$(shell expr "`cat /etc/issue 2> /dev/null`" : '.*Debian.*')
+SUSE=$(shell expr "`cat /etc/issue 2> /dev/null`" : '.*SuSE.*')
+SUSE91=$(shell expr "`cat /etc/issue 2> /dev/null`" : '.*SuSE Linux 9.1.*')
+REDHAT=$(shell expr "`cat /etc/issue 2> /dev/null`" : '.*Red Hat.*')
+MANDRAKE=$(shell expr "`cat /etc/issue 2> /dev/null`" : '.*Mandrake.*')
+DARWIN=$(shell expr "`uname -a`" : '.*Darwin.*')
+
 
 ifneq (${DEBIAN},0)
 OS:=debian
@@ -41,13 +43,16 @@ else
       else   
         ifneq (${MANDRAKE},0)
           OS=mandrake
+       else   
+          ifneq (${DARWIN},0)
+            OS=darwin
+         endif 
         endif
       endif
     endif
   endif
 endif
 
-
 ifndef DOCFILE_BASE
 DOCFILE_BASE=${DOCFILE_BASE_DEFAULT}
 endif