X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2FMakefile;h=39c411eb6264d55856a1e2e37094f30acac22453;hb=f7a356bb4c11d062eeeb5d4aaf4e187a3cb15a27;hp=7acb6932393dfd004f19a14a858567f44b94ff3c;hpb=1564d97ae25555b0d4f597316a42d0b7419de846;p=clsql.git diff --git a/doc/Makefile b/doc/Makefile index 7acb693..39c411e 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -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