diff options
author | Corey Farrell <git@cfware.com> | 2015-04-30 15:40:48 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2015-04-30 15:40:48 -0400 |
commit | 47fa2ad10b20fbc2b9edc6202644a794e7dd74f6 (patch) | |
tree | 11a3bf127722ffde1f0efa73406f4e44c7823dc1 /Makefile.moddir_rules | |
parent | 4475945a24697b17b2747b40d4b2811f4ba73723 (diff) |
Build System: Fix issue with addons moduleinfo.
The build system now scans additional sources when generating
moduleinfo for menuselect. Unfortunately the extra sources
for format_mp3 only exist if downloaded.
Use the Makefile macro 'wildcard' to allow moduleinfo generator
to ignore sources that do not exist.
Change-Id: I596604713b7345ce994f32197f8f6bfd9bcf4170
Diffstat (limited to 'Makefile.moddir_rules')
-rw-r--r-- | Makefile.moddir_rules | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.moddir_rules b/Makefile.moddir_rules index 3d3e6ad67..d2964e374 100644 --- a/Makefile.moddir_rules +++ b/Makefile.moddir_rules @@ -66,7 +66,9 @@ define MOD_ADD_SOURCE $$(if $$(filter $(1),$$(EMBEDDED_MODS)),modules.link,$(1).so): $$(subst $(3),$(5),$(2)) $$(subst $(3),$(5),$(2)): _ASTCFLAGS+=$$(call MOD_ASTCFLAGS,$(1)) .$(1).moduleinfo: MODULEINFO_EXTRA_OUTPUT=" $$(addprefix $$(SUBDIR)/,$$(subst $(3),$(5),$(2)) $$(subst $(3),$(4),$(2)))" -.$(1).moduleinfo: $(2) +# The use of wildcard ensures that 'make menuselect' will not fail for modules that +# require additional source downloads. +.$(1).moduleinfo: $(wildcard $(2)) clean:: clean-$(1)$(3) |