X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2FMakefile;h=9f9327dfcb27c2660f3531140dd6c4b7ca4b4196;hb=55f590bf6f5298e59aae30f02c958388f483da02;hp=ad31590c1d03bfe214ab315b2d22e50209a65e6d;hpb=98cf9b123a591c304cb298d3f4c7796a0761b41d;p=clsql.git diff --git a/doc/Makefile b/doc/Makefile index ad31590..9f9327d 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -21,10 +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`" : '.*RedHat.*') +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 @@ -37,12 +40,19 @@ else else ifneq (${REDHAT},0) OS=redhat + 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