[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 25 Mar 2004 14:11:13 -0500
Mozilla Thunderbird 0.5 (Windows/20040212)
While debugging make files, I have frequently thought it might be nice
to see what the files contain after make processes them. In particular,
I would like to see what the rules and variables look like. Here is an
example of a situation where I think this would be useful.
$(SOMEPREFIX)%.new : %.in
SOMEPREFIX = prefix
When make runs, we'll have this for the definition of the pattern rule.
%.new : %.in
If we had included anotherfile.mk at the top of makefile, we would
instead have this.
prefix%.new : %.in
Sometimes, errors like this are hard to detect. I would like to be able
to run my makefiles through some processor (make -someflag >
makefile.out) and see what make thinks I'm telling it. here's more
After running through the debugging feature I'm talking about,
makefile.out would contain the following.
Does something like this already exist? If it doesn't could it be added
to GNU make?
- Debugging Make,
Ken Smith <=