On Mon, 2 Mar 2009 15:42:44 -0500 Sang Lee wrote:
> I would like to dump time stamps of all build target files and their
> prerequisite files along with dependency graph.
> Somehow I would like to use this dumped information to re-build same target
> files instead of saving a snapshot of whole source code files.
> Is it possible to extract all required information from the makefile,
> makefile.ms and makefile.mo files of previous build to re-build same
> targets?
I'm not sure exactly what you are trying to do
if you want to manipulate the state information then
this makefile will get you started
---
dump : .MAKE .VIRTUAL .FORCE .REPEAT
local R S
for R $(...:A!=.ATTRIBUTE|.VIRTUAL:T!=S)
S := $(R:T=SR)
print -- $(R:V:@Q) $(S:T=R=%K.%N) $(~$(S):V:Q)
end
exit
.MAKEINIT : dump
---
put this in a file, say dump.mk, and then run the following
in the directory where you want to extract the info
nmake -n -g dump.mk
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users