mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
Makefile: expose 'graph-depends' to generate a graph of the dependency tree
Generate the graph of the complete dependency tree by calling: make graph-depends It's also possible to generate the graph-depends for a single package: make PKG-graph-depends The graphs are generated in $(O)/graphs/ Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
e16bf92252
commit
0cfe3ab88c
7
Makefile
7
Makefile
@ -642,6 +642,11 @@ graph-build: $(O)/build/build-time.log
|
|||||||
--output=$(O)/graphs/build.pie-$(t).pdf \
|
--output=$(O)/graphs/build.pie-$(t).pdf \
|
||||||
$(if $(GRAPH_ALT),--alternate-colors)$(sep))
|
$(if $(GRAPH_ALT),--alternate-colors)$(sep))
|
||||||
|
|
||||||
|
graph-depends:
|
||||||
|
@$(INSTALL) -d $(O)/graphs
|
||||||
|
@./support/scripts/graph-depends \
|
||||||
|
|dot -Tpdf -o $(O)/graphs/$(@).pdf
|
||||||
|
|
||||||
else # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
|
else # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
|
||||||
|
|
||||||
all: menuconfig
|
all: menuconfig
|
||||||
@ -814,6 +819,7 @@ help:
|
|||||||
@echo ' toolchain - build toolchain'
|
@echo ' toolchain - build toolchain'
|
||||||
@echo ' <package>-rebuild - force recompile <package>'
|
@echo ' <package>-rebuild - force recompile <package>'
|
||||||
@echo ' <package>-reconfigure - force reconfigure <package>'
|
@echo ' <package>-reconfigure - force reconfigure <package>'
|
||||||
|
@echo ' <package>-graph-depends - generate graph of the dependency tree for package'
|
||||||
@echo
|
@echo
|
||||||
@echo 'Configuration:'
|
@echo 'Configuration:'
|
||||||
@echo ' menuconfig - interactive curses-based configurator'
|
@echo ' menuconfig - interactive curses-based configurator'
|
||||||
@ -855,6 +861,7 @@ endif
|
|||||||
@echo ' manual-text - build manual in text'
|
@echo ' manual-text - build manual in text'
|
||||||
@echo ' manual-epub - build manual in ePub'
|
@echo ' manual-epub - build manual in ePub'
|
||||||
@echo ' graph-build - generate graphs of the build times'
|
@echo ' graph-build - generate graphs of the build times'
|
||||||
|
@echo ' graph-depends - generate graph of the dependency tree'
|
||||||
@echo
|
@echo
|
||||||
@echo 'Miscellaneous:'
|
@echo 'Miscellaneous:'
|
||||||
@echo ' source - download all sources needed for offline-build'
|
@echo ' source - download all sources needed for offline-build'
|
||||||
|
@ -468,6 +468,11 @@ endif
|
|||||||
$(1)-show-depends:
|
$(1)-show-depends:
|
||||||
@echo $$($(2)_DEPENDENCIES)
|
@echo $$($(2)_DEPENDENCIES)
|
||||||
|
|
||||||
|
$(1)-graph-depends:
|
||||||
|
@$(INSTALL) -d $(O)/graphs
|
||||||
|
@./support/scripts/graph-depends $(1) \
|
||||||
|
|dot -Tpdf -o $(O)/graphs/$$(@).pdf
|
||||||
|
|
||||||
$(1)-dirclean: $$($(2)_TARGET_DIRCLEAN)
|
$(1)-dirclean: $$($(2)_TARGET_DIRCLEAN)
|
||||||
|
|
||||||
$(1)-clean-for-rebuild:
|
$(1)-clean-for-rebuild:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user