This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
how_to_use_xcode2_as_ide_on_a_mac [2007/10/14 22:33] karnlund previous script was creating the Makefile in the tools directory instead of SRCROOT |
how_to_use_xcode2_as_ide_on_a_mac [2011/07/22 14:51] (current) digineural removed spam |
||
---|---|---|---|
Line 80: | Line 80: | ||
PATH=/usr/local/bin:$PATH | PATH=/usr/local/bin:$PATH | ||
- | |||
cd "$SRCROOT" | cd "$SRCROOT" | ||
./tools/mkmk.pl "$SRCROOT/MAKEFILE.SPEC" | ./tools/mkmk.pl "$SRCROOT/MAKEFILE.SPEC" | ||
+ | echo Makefile replaced. | ||
+ | exit 0 | ||
+ | </code> | ||
+ | |||
+ | for Xcode 3 you need to strip the quotes: | ||
+ | <code bash> | ||
+ | # shell script goes here | ||
+ | |||
+ | PATH=/usr/local/bin:$PATH | ||
+ | cd $SRCROOT/tools | ||
+ | ./mkmk.pl "$SRCROOT/MAKEFILE.SPEC" | ||
echo Makefile replaced. | echo Makefile replaced. | ||
- | echo Success. | ||
exit 0 | exit 0 | ||
+ | </code> | ||
+ | |||
+ | If you get an error like "line x: ./mkmk.pl: Permission denied", you need to give the perl script execute rights. Easiest way to do this is open your favorite FTP program and set "Executeable" or use the Terminal: | ||
+ | <code> | ||
+ | chmod 750 <drag mkmk.pl in terminal window, path should appear) | ||
</code> | </code> | ||
Line 115: | Line 129: | ||
exit 0 | exit 0 | ||
</code> | </code> | ||
+ | |||
+ | For XCode 3.0 (under Leopard) do not forget to remove the quotes around the $SRCROOT (the variable points to your project directory). | ||
As you see, the only trick is, to invoke the makefile. | As you see, the only trick is, to invoke the makefile. | ||
Line 141: | Line 157: | ||
If you have questions, feel free to post them here: http://www.midibox.org/forum/index.php?topic=6527.0 | If you have questions, feel free to post them here: http://www.midibox.org/forum/index.php?topic=6527.0 | ||
+ | |||
+ |