From: Kevin M. Rosenberg Date: Wed, 12 Nov 2003 16:32:56 +0000 (+0000) Subject: r8173: fix os detection X-Git-Tag: v1.6.1~148 X-Git-Url: http://git.kpe.io/?p=uffi.git;a=commitdiff_plain;h=385bd9a0364791389bcbba525b360a8b1f2927cd r8173: fix os detection --- diff --git a/doc/Makefile b/doc/Makefile index 6d44a96..a3530de 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -21,9 +21,10 @@ DOCFILE_EXT_DEFAULT:=xml # Standard docfile processing -DEBIAN=expr "`cat /etc/issue`" : '.*Debian.*' -SUSE=expr "`cat /etc/issue`" : '.*SuSE.*' -REDHAT=expr "`cat /etc/issue`" : '.*RedHat.*' +DEBIAN=$(shell expr "`cat /etc/issue`" : '.*Debian.*') +SUSE=$(shell expr "`cat /etc/issue`" : '.*SuSE.*') +REDHAT=$(shell expr "`cat /etc/issue`" : '.*RedHat.*') + ifneq (${DEBIAN},0) OS:=debian @@ -37,6 +38,7 @@ else endif endif + ifndef DOCFILE_BASE DOCFILE_BASE=${DOCFILE_BASE_DEFAULT} endif @@ -69,6 +71,7 @@ doc: html pdf .PHONY: check check: + @echo "Operating System Detected: ${OS}" @$(CHECK) .PHONY: html