X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=doc%2FMakefile;h=0f4e6d141ac277b3f18366ed81e7c0a3f8cea179;hb=398c7bf8d47d979a1879cf67d596c2827a98b0d9;hp=b98923c8745ae3ec12cbc7058ddf78f7e9526992;hpb=3c5c2c265637357e88cb5bb36bcfdc5569bdea4c;p=sbcl.git diff --git a/doc/Makefile b/doc/Makefile index b98923c..0f4e6d1 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,26 +1,34 @@ +# Makefile for SBCL document generation + DOCFILE_BASE_DEFAULT:=user-manual 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 +# Standard docfile processing as copied from UFFI +# Placed into public domain by author Kevin Rosenberg + +SYSTEM:=$(shell uname) + +ifeq ($(SYSTEM),Linux) + ifneq ($(shell expr "`cat /etc/issue`" : '.*Debian.*'),0) + OS:=debian + else + ifneq ($(shell expr "`cat /etc/issue`" : '.*SuSE.*'),0) + OS=suse + else + ifneq ($(shell expr "`cat /etc/issue`" : 'Red Hat Linux release 9'),0) + OS=redhat9 + else + ifneq ($(shell expr "`cat /etc/issue`" : '.*Yarrow.*'),0) + OS=fedora1 + endif + endif endif endif endif +ifeq ($(SYSTEM),Darwin) + OS:=fink +endif ifndef DOCFILE_BASE DOCFILE_BASE=${DOCFILE_BASE_DEFAULT} @@ -44,11 +52,11 @@ ifeq ($(XSLTPROC),) XSLTPROC:=xsltproc endif -CATALOG:=`pwd`/catalog-${OS}.xml +CATALOG:=`pwd`/catalogs/catalog-${OS}.xml CHECK:=XML_CATALOG_FILES="$(CATALOG)" xmllint --noout --xinclude --postvalid $(DOCFILE) || exit 1 .PHONY: all -all: html pdf +all: html .PHONY: dist dist: html pdf @@ -105,9 +113,9 @@ ${TXTFILE}: ${FOFILE} .PHONY: clean clean: @rm -f *~ *.bak *.orig \#*\# .\#* texput.log - @rm -rf html ${PSFILE} ${HTMLFILE} html-stamp - @rm -f ${TMPFILES} ${FOFILE} - @rm -f ${DVIFILE} ${TXTFILE} + @rm -rf html $(PSFILE) $(HTMLFILE) $(PDFFILE) html-stamp + @rm -f $(TMPFILES) $(FOFILE) + @rm -f $(DVIFILE) $(TXTFILE) .PHONY: distclean distclean: clean