]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
BuildSystem: Allow make clean all again.
authorAlexander Traud <pabstraud@compuserve.com>
Fri, 19 Jan 2018 18:14:53 +0000 (19:14 +0100)
committerAlexander Traud <pabstraud@compuserve.com>
Fri, 19 Jan 2018 18:21:36 +0000 (12:21 -0600)
ASTERISK-27600
Reported by: Hamid R. Hashmi

Change-Id: I683d14d024650be04074b037b6300464519409f4

Makefile

index 28245aa971cb0b4be3537620c0eabae9fe306e67..5db5a8d4734e1b2ef5df54c81471796fb79e3623 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -104,8 +104,11 @@ export PATCH
 export SED
 export NM
 
-# makeopts is required unless the goal is clean or distclean
-ifeq ($(findstring clean,$(MAKECMDGOALS)),)
+# makeopts is required unless the goal is just {dist{-}}clean
+ifeq ($(MAKECMDGOALS),clean)
+else ifeq ($(MAKECMDGOALS),distclean)
+else ifeq ($(MAKECMDGOALS),dist-clean)
+else
 include makeopts
 endif