OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]