OK folks, since I have been bothering the list with my request of having
the environment available, now that I have found the answer myself, I would
like to share it with you. It's my way of saying sorry for crying around ;-)
The problem:
I always put the Makefile (for C/C++) or build.xml (for Java) at the root
of my development tree. I use to start the editor at the root too and
include
all the path to a specific file. E.g.
cd ~/Devel/javadb
SciTE source/gui.java
In all my projects I use 'all' as the target when I want to compile and
'rebuild' when I want to build the project. (Just a matter of personal
methodology)
Using the following lua file, I can assign the 'right' compile and build
commands to SciTE:
--------------- cut here ------------------------------
local function maker(prg)
return string.format('cd %q && %s',os.getenv('PWD'),prg)
end
props['command.compile.*.c']=maker('make all')
props['command.compile.*.java']=maker('ant all')
props['command.compile.$(file.patterns.cplusplus)']=maker('make all')
props['command.build.*.c']=maker('make rebuild')
props['command.build.*.java']=maker('ant rebuild')
props['command.build.$(file.patterns.cplusplus)']=maker('make rebuild')
--------------- cut here ------------------------------
I hope it helps anyone who's starting to SciTE
KR,PA
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest