This question doesn't have much to do w/ Perl, but since many computer savvy people read this, it's worth a try. I'm working on a project that has to do with the make command in UNIX to build projects. There are makefiles involved - in fact, a makefile tree where there subdirectories with their own makefiles which are called upon by the main makefile (recursive makes).
What I need to do is figure out which files in the project are used for which applications - each build can consist of several applications. I'll be writing a Perl script (if this is possible) that basically spits out info about the files used for each application in the whole build - some files might be shared.
Is there any possible way from reading the main makefile (root directory of the project) and extracting this information? I'm on HP-UX, but I use ClearCase which, in turn, provides clearmake - their own version of the UNIX make(1). I figured out that by running clearmake w/ the -w -d and -n optionas, I get a dry run that gives me the names of all the directories and files used in the build for the project, but I still haven't found a way to separate this by application or executable, IF possible at all. I know this is mostly a Perl board, but maybe someone can point me to a place where I can get an answer to my question or where I can make sure that there is no one solution.
Thanx for any help I can get!!!
In reply to The dreadful Makefiles by IcyHot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |