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`" : '.*RedHat.*')
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
+ endif
endif
endif
endif
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