Re: [xcode] make in external target
Re: [xcode] make in external target
- Subject: Re: [xcode] make in external target
- From: Chris Ridd <email@hidden>
- Date: Mon, 31 Oct 2005 11:43:36 +0000
- Thread-topic: [xcode] make in external target
On 31/10/05 11:06, Kaspar Fischer <email@hidden> wrote:
> Hi,
>
> I have an external target in XCode in which I run a makefile
> using /usr/bin/make. The problem I encounter is that one of
> the commands that needs to get executed cannot be found (latex).
>
> As far as I understand the issue, the problem is that the
> shell run by XCode is a non-interactive shell and does not
> read my usual ~/.profile intialization stuff. (In the latter
> I set the path for latex to /sw/bin.) It appears that I am
> not even allowed to *change* the path: doing a
>
> manual.pdf: manual.tex
> export PATH="$(PATH):/sw/bin"
> echo $(PATH)
> latexmk -pdf manual
>
> in the makefile does not alter the path at all!
It does, but each line of the rule is probably being executed by a different
shell so your changes are being thrown away. Try:
manual.pdf: manual.tex
export PATH="$(PATH):/sw/bin" \
echo $(PATH) \
latexmk -pdf manual
Or even, of course:
manual.pdf: manual.tex
PATH="$(PATH):/sw/bin" latexmk -pdf manual
Cheers,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden