[TxMt] Compile java using make within TM

Allan Odgaard allan at macromates.com
Thu Nov 18 14:54:58 UTC 2004


On Nov 18, 2004, at 9:16 AM, Ivar Åsell wrote:

> I usually create a TM-project for the source-folder.
> How can I make a macro that executes the makefile?

You probably want to do a command instead of a macro.

It sounds like you can do:
    cd $TM_PROJECT_DIRECTORY/..
    make

If the makefile outputs "simple" error lines with filename and line 
number, you can set output to external window and enter a regular 
expression to parse the lines (so that you can click on errors) -- 
there's more about this in the manual -- if it's not sufficient, just 
ask and I'll clarify! :)

> Hopefully I will only be using the terminal to start my programs

Just a FYI, you can execute commands in the terminal also via commands, 
e.g.:
    osascript -e 'tell app "Terminal" to do script "data"'

This will execute “date” in a terminal. To give it focus, you may also 
want to do:
    osascript -e 'tell app "Terminal" to activate'




More information about the textmate mailing list