• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [xcode] make in external target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: [xcode] make in external target
      • From: Kaspar Fischer <email@hidden>
References: 
 >[xcode] make in external target (From: Kaspar Fischer <email@hidden>)

  • Prev by Date: [xcode] make in external target
  • Next by Date: Re: [xcode] make in external target
  • Previous by thread: [xcode] make in external target
  • Next by thread: Re: [xcode] make in external target
  • Index(es):
    • Date
    • Thread