gbuild: ComponentTarget: rebuild if library names change

Stale component files result in failure to load libraries in incremental
builds; because rebuilding these is fast just depend on the 2 Repository
makefiles that define the library file names.

Change-Id: Ia72a0460d3bb8bceb0e17334415ca3dde0401c24
This commit is contained in:
Michael Stahl
2013-02-25 13:06:18 +01:00
parent 93a9744212
commit 0e273d6fb8

View File

@@ -51,8 +51,12 @@ $(call gb_ComponentTarget_get_clean_target,%) :
$(call gb_ComponentTarget_get_target,$*) \
# when a library is renamed, the component file needs to be rebuilt to match.
# hence simply depend on Repository{,Fixes}.mk since the command runs quickly.
$(call gb_ComponentTarget_get_target,%) : \
$(call gb_ComponentTarget_get_source,%) \
$(SRCDIR)/Repository.mk \
$(SRCDIR)/RepositoryFixes.mk \
| $(call gb_ExternalExecutable_get_dependencies,xsltproc)
$(call gb_ComponentTarget__command,$@,$<,$*)