X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2FMakefile;h=a3530de914e38654e2e9a4654ab1ae8dfee679db;hb=7bc8076c608cf524926c58d163ced35ede4bc210;hp=8d61e2b792c79b186f39b8c8b7ea1132dc1d3ed6;hpb=7eb3af145e05fea52bdd54c4da8739e3d71a6528;p=uffi.git diff --git a/doc/Makefile b/doc/Makefile index 8d61e2b..a3530de 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -15,12 +15,30 @@ # (http://opensource.franz.com/preamble.html), also known as the LLGPL. ############################################################################## -OS:=debian DOCFILE_BASE_DEFAULT:=uffi DOCFILE_EXT_DEFAULT:=xml + # Standard docfile processing +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 +else + ifneq (${SUSE},0) + OS=suse + else + ifneq (${REDHAT},0) + OS=redhat + endif + endif +endif + + ifndef DOCFILE_BASE DOCFILE_BASE=${DOCFILE_BASE_DEFAULT} endif @@ -53,6 +71,7 @@ doc: html pdf .PHONY: check check: + @echo "Operating System Detected: ${OS}" @$(CHECK) .PHONY: html