-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make2graph output discrepancy if file already exists #12
Comments
I quickly looked at the following Makefile
I confirme I get the same output as you, but the output of Make in debug mode shows me a depency.
output:
sorry, there is not much I can do. P. |
Hm, would this then be a bug in the debug output of make? |
yes and no, make is not supposed to know I want to use the information :-)
no that would break everything. |
I just noticed that if the files make would create actually exist, the visualization/"make -nd output" is correct. E.g. add to the Makefile a line with: run make without -n to create all files |
Using |
Having looked at this for only a few minutes (and not having looked at the actual code for make2graph yet) it looks like (from the The output indented under the processing of In the partial case the Similarly the I don't know if that's enough to be canonical or reliable but it looks (from this limited subset of outputs) that it might be. |
Thanks Etan for looking into this and Your suggestion to regard the indentation level. |
I don't know, it shouldn't be difficult, but honestly I don't currently have the time for this. |
Looks nice now |
Fix for "output discrepancy if file already exists" (Issue #12)
Considering this simple Makefile:
%.a:
echo "$@" > $@
%.b : %.a
echo "$@" > $@
%.z : %.b
echo "$@" > $@
If 1.a does not exist make2graph yields:
rm 1.a
/opt/make-4.1/bin/make -Bnd 1.z | make2graph | dot -Tpng -o Makefile_1.png
However, if 1.a already exists an additional (false?) dependency is drawn:
touch 1.a
/opt/make-4.1/bin/make -Bnd 1.z | make2graph | dot -Tpng -o Makefile_2.png
Same problem with make-3.81 or j4make
The text was updated successfully, but these errors were encountered: