Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xcode] make in external target




On 31.10.2005, at 13:42, Kaspar Fischer wrote:

Hi Chris,

Thanks for your answer.  When I saw it, I thought "of course,
that's it", but strangely, it does not work.  The output
in the XCode build transcript is

  /usr/bin/make
  export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/sw/bin"; \
          echo /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin; \
          latexmk -pdf manual
  /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
  /bin/sh: line 1: latexmk: command not found
  make: *** [manual.pdf] Error 127

(And I cannot drop the semicolons at the end of the individual
commands.) I also tried

/usr/bin/make
( export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/sw/bin"; \
echo /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin; \
latexmk -pdf airs-manual )
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
/bin/sh: line 1: latexmk: command not found
make: *** [airs-manual.pdf] Error 127


I am lost here.


I have no definitive solution, but some infos:

- if bash will be invoked with the name sh as an non-interactive shell, no startup file will be read. (not sure, if Xcode starts bash with sh, though)

- bash would read the envar BASH_ENV, if it exists and expand it to use it as a file name for a startup file
(see man)



Well, then (alternatively or combined) you might try to set the environment vars for the login with the .MacOSX folder and content.
The folder '.MacOSX' should be in your HOME folder, and containing a plist file: 'environment.plist'. If they do not exist, create them (notice, this folder is invisible, starting with a dot). Set vars with the plist editor or use terminal and command :


defaults write ~/.MacOSX/environment <VAR> "value"

Not 100% sure, but i think Xcode will get these vars set via .MacOSX.


Hope this helps

Regards
Andreas


Regards,

Kaspar

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/ email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Re: [xcode] make in external target (From: Chris Ridd <email@hidden>)
 >Re: [xcode] make in external target (From: Kaspar Fischer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.