Next in thread → Next in month →

Re: [docbook-apps] catalog trouble when command is put in a Makefile

From
Mauritz Jeanson <>
Date
2004-08-02T13:49:16+00:00
ID
006c01c47897$cf70fda0$
Thread
Re: [docbook-apps] catalog trouble when command is put in a Makefile
----- Original Message ----- 
From: "Bob Stayton" 

> Makefiles don't work like shell scripts.  You can't set env variables like
> that for the whole makefile.  This would work, though:
> 
> html:
>     XML_CATALOG_FILES="catalog.xml" \
>     XML_DEBUG_CATALOG="1" \
>     xsltproc --output kua1.html web.xsl kua1.xml


But this does work in a makefile:

export XML_CATALOG_FILES=catalog.xml

html: 
    xsltproc --output kua1.html web.xsl kua1.xml

(GNU) make understands the "export" directive:
http://www.gnu.org/software/make/manual/html_mono/make.html#SEC60

/MJ
Next in thread → Next in month →