r9734: Document idiosyncrasies of the individual backends and differences from CommonSQL.
[clsql.git] / doc / Makefile
index 7acb6932393dfd004f19a14a858567f44b94ff3c..39c411eb6264d55856a1e2e37094f30acac22453 100644 (file)
@@ -23,16 +23,26 @@ DOCFILE_EXT_DEFAULT:=xml
 
 DEBIAN=$(shell expr "`cat /etc/issue`" : '.*Debian.*')
 SUSE=$(shell expr "`cat /etc/issue`" : '.*SuSE.*')
-REDHAT=$(shell expr "`cat /etc/issue`" : '.*RedHat.*')
+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.*')
 
 ifneq (${DEBIAN},0)
 OS:=debian
 else
-  ifneq (${SUSE},0)
-    OS=suse
-  else   
-    ifneq (${REDHAT},0)
-      OS=redhat
+  ifneq (${SUSE91},0)
+    OS=suse91
+  else
+    ifneq (${SUSE},0)
+      OS=suse
+    else   
+      ifneq (${REDHAT},0)
+        OS=redhat
+      else   
+        ifneq (${MANDRAKE},0)
+          OS=mandrake
+        endif
+      endif
     endif
   endif
 endif
@@ -56,6 +66,10 @@ HTMLFILE:=${DOCFILE_BASE}.html
 TMPFILES:=${DOCFILE_BASE}.aux ${DOCFILE_BASE}.out ${DOCFILE_BASE}.log
 DOCFILES:=$(shell echo *.xml *.xsl)
 
+ifeq ($(XSLTPROC),)
+  XSLTPROC:=xsltproc
+endif
+
 CATALOG:=`pwd`/catalog-${OS}.xml
 CHECK:=XML_CATALOG_FILES="$(CATALOG)" xmllint --noout --xinclude --postvalid $(DOCFILE) || exit 1