[Buildroot] [PATCH 3/4] Makefile: expose 'graph-depends' to generate a graph of the dependency tree
Yann E. MORIN
yann.morin.1998 at free.fr
Sat Dec 28 11:56:34 UTC 2013
Thomas, All,
On 2013-12-28 12:46 +0100, Thomas Petazzoni spake thusly:
> Dear Yann E. MORIN,
>
> On Sat, 28 Dec 2013 00:12:51 +0100, Yann E. MORIN wrote:
>
> > +%-graph-depends:
> > + @install -d $(O)/graphs
> > + @./support/scripts/graph-depends $(@:-graph-depends=) \
> > + |dot -Tpdf \
> > + -o $(O)/graphs/$(@).pdf
>
> Why isn't that one done in the package infrastructure, i.e in
> pkg-generic.mk ?
For two reasons:
- to have both graph-depends and %-graph-depends side-by-side, so it
is easier to update the rules,
- to limit the number of rules in the Makefile, which is already a bit
long to parse.
I initially added that in package/pkg-generic.mk:
$(1)-graph-depends:
@install -d $(O)/graphs
@./support/scripts/graph-depends $(1) \
|dot -Tpdf \
-o $(O)/graphs/$$(@).pdf
But this adds yet another rule per-package to the Makefile. So for the
reasons above, I decided to move it with graph-depends.
But I don't really care, I can change it back to a per-package rule.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
More information about the buildroot
mailing list