[Asterisk-code-review] Build System: Fix issue with addons moduleinfo. (asterisk[master])
Joshua Colp
asteriskteam at digium.com
Thu Apr 30 15:21:38 CDT 2015
Joshua Colp has submitted this change and it was merged.
Change subject: Build System: Fix issue with addons moduleinfo.
......................................................................
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
---
M Makefile.moddir_rules
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
Mark Michelson: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved; Verified
diff --git a/Makefile.moddir_rules b/Makefile.moddir_rules
index 3d3e6ad..d2964e3 100644
--- a/Makefile.moddir_rules
+++ b/Makefile.moddir_rules
@@ -66,7 +66,9 @@
$$(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)
--
To view, visit https://gerrit.asterisk.org/320
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I596604713b7345ce994f32197f8f6bfd9bcf4170
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
More information about the asterisk-code-review
mailing list