]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Makefile: Use basename in a POSIX-compliant way.
authorSean Bright <sean.bright@gmail.com>
Thu, 7 Oct 2021 17:50:08 +0000 (13:50 -0400)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 11 Oct 2021 15:03:44 +0000 (10:03 -0500)
If you aren't using GNU coreutils, chances are that your basename
doesn't know about the -s argument. Luckily for us, basename does what
we need it do even without the -s argument.

Change-Id: I8b81a429bb037b997ee6640ff8a2b5e860962bb7

Makefile

index 53a99bb5114b2c5c4bb246a130ec69965db1dff8..3a2eaf5390041f4f784f4a4df91765643054a3e1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -493,7 +493,7 @@ doc/core-en_US.xml: makeopts .lastclean $(XML_core_en_US)
                        MODULEINFO=$$($(AWK) -f build_tools/get_moduleinfo $$i) ; \
                        if [ -n "$$MODULEINFO" ] ; \
                        then \
-                               echo "<module language=\"en_US\" name=\"`$(BASENAME) -s .c $$i`\">" >> $@ ; \
+                               echo "<module language=\"en_US\" name=\"`$(BASENAME) $$i .c`\">" >> $@ ; \
                                echo "$$MODULEINFO" >> $@ ; \
                                echo "</module>" >> $@ ; \
                        fi ; \