-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Morrell wrote:
> My goal is to have a "nicer" verbose output.

One way to do this is as follows (I'm assuming GNU Make 3.81 here
because I use $(info)):

    do = $Q$(info $(value $_))$(info $_)$_

And here's an example.  Start with this:

    FOO = foo

    foo:
        $Qtouch $(FOO)

and transform it into:

    do = $Q$(info $(value 1))$(eval _ := $1)$_

    FOO = foo

    foo:
        $(call do,touch $$(FOO))

Note the double $ on the $(FOO).  I've kept your $Q (which will control
whether the expanded command if echoed or not).

If you've not come across my monthly GNU Make column you might like to
have a read as there are lots of useful tips:
http://www.cmcrossroads.com/articles/ask-mr.-make.html

John.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHB4UMLphrp73n/hARApEKAKCeloNMPTJzoA/iSqtHGCOO+2m6pgCfZ6+c
dP3g2+Ph6AlBh+aNShUR0cM=
=zeGJ
-----END PGP SIGNATURE-----


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to