diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-02-09 16:00:50 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-02-09 18:48:31 +0100 |
commit | 1b535267dfa18ad802229851fdbb88b656e8b7df (patch) | |
tree | d1469bf0a5e45908328db721aa7f9980944b831b /solenv | |
parent | 531391239bbd9d9dfc8df4d5f413fd0ab1758b09 (diff) |
treat all source files as not up to date only with FORCE_COMPILE_ALL
So running the compiler plugin can be done either with FORCE_COMPILE_ALL=1
for simplicity, running the plugin on all source files for the target,
or it's possible to use make's -W option (or touch files manually) to
run it only for selected files.
Change-Id: Ifa82bbe91dc1e179af9db8fbf99271bcf03a1d47
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/LinkTarget.mk | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/solenv/gbuild/LinkTarget.mk b/solenv/gbuild/LinkTarget.mk index 0ec033f31777..986dcae1f505 100644 --- a/solenv/gbuild/LinkTarget.mk +++ b/solenv/gbuild/LinkTarget.mk @@ -122,9 +122,12 @@ gb_Object__command_dep = \ $(call gb_Output_error,gb_Object__command_dep is only for gb_FULLDEPS) endif +ifneq ($(FORCE_COMPILE_ALL),) # This one only exists to force .c/.cxx "rebuilds" when running a compiler tool. -.PHONY: force_compiler_tool_run -force_compiler_tool_run: +.PHONY: force_compile_all_target +force_compile_all_target: +gb_FORCE_COMPILE_ALL_TARGET := force_compile_all_target +endif # CObject class @@ -133,7 +136,7 @@ gb_CObject_get_source = $(1)/$(2).c # gb_CObject__command ifneq ($(COMPILER_PLUGIN_TOOL),) -$(call gb_CObject_get_target,%) : $(call gb_CObject_get_source,$(SRCDIR),%) force_compiler_tool_run +$(call gb_CObject_get_target,%) : $(call gb_CObject_get_source,$(SRCDIR),%) $(gb_FORCE_COMPILE_ALL_TARGET) $(call gb_CObject__tool_command,$*,$<) else $(call gb_CObject_get_target,%) : $(call gb_CObject_get_source,$(SRCDIR),%) @@ -183,7 +186,7 @@ endif endef ifneq ($(COMPILER_PLUGIN_TOOL),) -$(call gb_CxxObject_get_target,%) : $(call gb_CxxObject_get_source,$(SRCDIR),%) force_compiler_tool_run +$(call gb_CxxObject_get_target,%) : $(call gb_CxxObject_get_source,$(SRCDIR),%) $(gb_FORCE_COMPILE_ALL_TARGET) $(call gb_CxxObject__tool_command,$*,$<) else $(call gb_CxxObject_get_target,%) : $(call gb_CxxObject_get_source,$(SRCDIR),%) @@ -306,7 +309,7 @@ gb_ObjCxxObject_get_source = $(1)/$(2).mm # gb_ObjCxxObject__command ifneq ($(COMPILER_PLUGIN_TOOL),) -$(call gb_ObjCxxObject_get_target,%) : $(call gb_ObjCxxObject_get_source,$(SRCDIR),%) force_compiler_tool_run +$(call gb_ObjCxxObject_get_target,%) : $(call gb_ObjCxxObject_get_source,$(SRCDIR),%) $(gb_FORCE_COMPILE_ALL_TARGET) $(call gb_ObjCxxObject__tool_command,$*,$<) else @@ -330,7 +333,7 @@ gb_ObjCObject_get_source = $(1)/$(2).m # gb_ObjCObject__command ifneq ($(COMPILER_PLUGIN_TOOL),) -$(call gb_ObjCObject_get_target,%) : $(call gb_ObjCObject_get_source,$(SRCDIR),%) force_compiler_tool_run +$(call gb_ObjCObject_get_target,%) : $(call gb_ObjCObject_get_source,$(SRCDIR),%) $(gb_FORCE_COMPILE_ALL_TARGET) $(call gb_ObjCObject__tool_command,$*,$<) else |