This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] catalog trouble when command is put in a Makefile
- From: "Mauritz Jeanson" <mj at johanneberg dot com>
- To: "Bob Stayton" <bobs at sagehill dot net>, "Frans Englich" <frans dot englich at telia dot com>
- Cc: <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 2 Aug 2004 15:51:27 +0200
- Subject: Re: [docbook-apps] catalog trouble when command is put in a Makefile
- References: <200407200248.30141.frans.englich@telia.com> <02f501c471ad$ec05a3d0$6601a8c0@toshiro>
- Reply-to: "Mauritz Jeanson" <mj at johanneberg dot com>
----- 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