I often debug Makefiles and often ask: where did that command (rule)
come from?
My solution has always been to use combinations of "-d" and "-p" and
attempt to sort through the copious output.
With "-p" - make prints the resulting makefile.
With "-d" - make tells you what it is doing.
With
paul>> It's very easy, though, just do this:
paul>> DBG_ORDER = $(foreach V,$(RAW_DBG_ORDER),$($(V)))
paul>> You can make a function out of it and use $(call ...) if that makes it
paul>> clearer in your makefile.
Thank you, works like a charm.
--Duane
__
Hi, I'm using GNU make 3.79.1 (with redhat 7.3 intel)
I'm stuck - I can't seem to figure out how to do a computed variable
reference, or maybe this is a subst function call. This describes the
problem
I have two non trival list of make targets that need to be built by
make. The lists are really
mand dependencies every time a target in the group is
encountered in the dependency scan.
-Thanks.
Duane Ellis.
version:
$ make -v
GNU Make version 3.77, by Richard Stallman and Roland McGrath.
os:
Red Hat 6.1, i686. (Make was built/configured by Redhat, not me)
the info file states: (Node: Flavors, and numerous others)
at the end of the page, it says:
---