diff options
author | George Joseph <george.joseph@fairview5.com> | 2016-01-27 09:29:13 -0700 |
---|---|---|
committer | George Joseph <george.joseph@fairview5.com> | 2016-01-27 09:31:05 -0700 |
commit | aee8448bc24d6da80dda577cfc14b6c9055577a0 (patch) | |
tree | 8ff6e5ff6df8bf82e9ec8d36e33f078326bd1161 /apps | |
parent | 4cc784eb049ee24246dad3c9d4ba46e25ab9f64b (diff) |
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
Diffstat (limited to 'apps')
0 files changed, 0 insertions, 0 deletions