]> git.ipfire.org Git - thirdparty/asterisk.git/commit
build_system: Prevent goals needing makeopts from running when it's missing 00/2100/1
authorGeorge Joseph <george.joseph@fairview5.com>
Wed, 27 Jan 2016 16:29:13 +0000 (09:29 -0700)
committerGeorge Joseph <george.joseph@fairview5.com>
Wed, 27 Jan 2016 16:44:11 +0000 (10:44 -0600)
commit998ef420d074ac5306cd543779318fd6dacafc72
treec6de9d52b1b30a38333e999205d02ef4e46ff55c
parent3918ccd6d963a06bd5a22ece7a86ddce61f06f21
build_system: Prevent goals needing makeopts from running when it's missing

The Makefile only optionally includes makeopts so when goals like uninstall that
dont depend on anything else are run after a distclean, rules like
'rm -f "$(DESTDIR)$(ASTMODDIR)/"*' get run as 'rm -f ""/*' which attempts
to remove everything in the root directory.

Although there's a rule defined for makeopts which prints a message and does
an 'exit 1', since '-include makepopts' was specified (with the -), the exit
was ignored letting the rest of the rules run.

This patch makes makeopts required unless the goal has the string 'clean' in it.

ASTERISK-25730 #close
Reported-by: George Joseph
Change-Id: I1bce59a7ea4f48e7a468e22b2abbb13c63417ac7
Makefile