%% "CARTER-HITCHIN, David, FM" <[EMAIL PROTECTED]> writes: cdf> Thanks for replying. Sorry I didn't really finish my account of cdf> what happens: The .cc and .h files get created in the source dirs cdf> w,x,y or z, and so when we rerun make it tries to find cdf> ../idl/a.cc or ../idl/a.h and of course never finds them, so it cdf> rebuilds.
>> %.h ../idl/%.cc : ../idl/%.idl >> $(IDL_COMMAND) $(IDL_OPTIONS) $< cdf> I tried a few things like this. The variation you give means the cdf> target is still '../idl/gds_server.h' which is not where the cdf> header needs to live and the pre-requisite is cdf> '../idl/../idl/gds_svc_man.idl' which looks broken but we're just cdf> making make skip between dirs and is the same as what we've cdf> started with. You'll need to give more precise details. What directory is make in when it executes? Where are the idl files (that was in your email, but please restate it in a complete context)? Where do you want the output files generated? What are the prerequisites used to find the .idl files--presumably foo.o depends on foo.cc and foo.h for example: where are the .o files? What exactly does the target/prerequisite line look like (what pathnames are used, etc.)? cdf> Any other ideas? I could hard code specific rules for these cdf> files but I'd prefer to have a suffix rule if possible. If you could provide a complete, but small, makefile that showed the problem, substituting "echo" or "cp" for the IDL_COMMAND, that would be very helpful. -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
