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:14:53 +0000 (19:14 +0100)
ASTERISK-27600
Reported by: Hamid R. Hashmi

Change-Id: I683d14d024650be04074b037b6300464519409f4

Makefile

index 6bc63a1..23751d2 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