Re: orbit2 idl output directory



Harter Damien wrote:

I have my Makefile in directory "." in which I use the orbit-idl-2 command. The problem is that it generates the files in the current directory but I want them to be generated where the idl file is... In some words, I'd like to do so :
orbit-idl-2 -dir=../src/ ../src/myidl.idl


You can always get make to cd into the directory before executing orbit-idl-2. You can either hard code a rule or use a generic form like this one:

%-common.c %-skels.c %-stubs.c %.h %-imodule.c: %.idl
( cd `echo $< | perl -ne 's,[^/]*$$,,; print'` ; orbit-idl-2 -I . --add-imodule `basename $<` )


This works with GNU make and requires perl.

--
Bowie Owens

CSIRO Mathematical & Information Sciences
phone  : +61 3 9545 8055
fax    : +61 3 9545 8080
mobile : 0425 729 875
email  : Bowie Owens csiro au




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]