Noame has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I would like to write Perl script to generate dependencies files based + on cpp files. The script have to run on all *.cpp files under current directory and +for each of them to retrieve his dependencies list. The script should to look for the other header files according to $INC +LUDE variable. Finally, the script should to write the result to make.dep (namke form +at) file as describe below .\FILE1.CPP : \ "..\..\inc\ADVISOR.H"\ "..\..\inc\audittrail.h"\ "..\..\inc\Cimr.h"\ .\FILE2.CPP : \ "..\..\inc\corba\corbastructdefs.h"\ "..\..\inc\DBFCLASS.H"\ "..\..\INC\dbfs.h"\ .\FILE3.CPP : \ "..\..\INC\dbfs_c_struct.h"\ "..\..\inc\dynadbfs.h"\ "..\..\inc\errorlog.h"\ "..\..\INC\FSP.H"\ The file.dep will include information about all the *.cpp files under +the current directory.I need to automatically build the list of depen +dency files, for nmake so I don't need to recompile everything when I + change a header file. Please let me know if you have any script to implement it, or any algo +rithm to perform it.... Thank you for your help, Jona.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Generate dep file from CPP file- to use with nmake
by roboticus (Chancellor) on Apr 13, 2008 at 14:11 UTC | |
by Noame (Beadle) on Apr 14, 2008 at 05:41 UTC | |
|
Re: Generate dep file from CPP file- to use with nmake
by moritz (Cardinal) on Apr 13, 2008 at 14:59 UTC | |
|
Re: Generate dep file from CPP file- to use with nmake
by tinita (Parson) on Apr 13, 2008 at 14:09 UTC |