Kaydet (Commit) 1c819594 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

add showmodules target to gbuild

üst ad1e8750
...@@ -89,7 +89,7 @@ $(call gb_Module_get_target,%) : ...@@ -89,7 +89,7 @@ $(call gb_Module_get_target,%) :
mkdir -p $(dir $@) && \ mkdir -p $(dir $@) && \
touch $@) touch $@)
.PHONY : build all clean unitcheck slowcheck subsequentcheck dev-install .PHONY : build all clean unitcheck slowcheck subsequentcheck dev-install showmodules
.DEFAULT_GOAL := all .DEFAULT_GOAL := all
ifeq ($(strip $(gb_PARTIALBUILD)),) ifeq ($(strip $(gb_PARTIALBUILD)),)
...@@ -174,6 +174,10 @@ dev-install : ...@@ -174,6 +174,10 @@ dev-install :
ln -s $(DEVINSTALLDIR)/opt/ $(SRCDIR)/install ln -s $(DEVINSTALLDIR)/opt/ $(SRCDIR)/install
$(info $(gb_Module_DEVINSTALLHINT)) $(info $(gb_Module_DEVINSTALLHINT))
showmodules :
$(info $(strip $(gb_Module_ALLMODULES)))
@true
define gb_Module_Module define gb_Module_Module
gb_Module_ALLMODULES += $(1) gb_Module_ALLMODULES += $(1)
gb_Module_MODULELOCATIONS += $(1):$(dir $(realpath $(lastword $(MAKEFILE_LIST)))) gb_Module_MODULELOCATIONS += $(1):$(dir $(realpath $(lastword $(MAKEFILE_LIST))))
...@@ -206,6 +210,7 @@ endif ...@@ -206,6 +210,7 @@ endif
endef endef
ifneq (showmodules,$(MAKECMDGOALS))
define gb_Module_add_target define gb_Module_add_target
$(call gb_Module__read_targetfile,$(1),$(2),target) $(call gb_Module__read_targetfile,$(1),$(2),target)
...@@ -237,6 +242,7 @@ $(call gb_Module_get_subsequentcheck_target,$(1)) : $$(gb_Module_CURRENTTARGET) ...@@ -237,6 +242,7 @@ $(call gb_Module_get_subsequentcheck_target,$(1)) : $$(gb_Module_CURRENTTARGET)
$(call gb_Module_get_clean_target,$(1)) : $$(gb_Module_CURRENTCLEANTARGET) $(call gb_Module_get_clean_target,$(1)) : $$(gb_Module_CURRENTCLEANTARGET)
endef endef
endif
define gb_Module_add_moduledir define gb_Module_add_moduledir
include $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Module_MODULELOCATIONS)))/$(2)/Module_$(2).mk include $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Module_MODULELOCATIONS)))/$(2)/Module_$(2).mk
......
...@@ -35,6 +35,7 @@ AVAILABLE TARGETS ...@@ -35,6 +35,7 @@ AVAILABLE TARGETS
check run unit tests and if in toplevel subsequentcheck check run unit tests and if in toplevel subsequentcheck
clean remove all generated files clean remove all generated files
showdeliverables show the targets delivered to OUTDIR and their source showdeliverables show the targets delivered to OUTDIR and their source
showmodules show the modules that would be loaded
debugrun starts the dev-install instance and allows tests to be run debugrun starts the dev-install instance and allows tests to be run
against it against it
<module> build the named module <module> build the named module
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment