This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]