]> 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:47 +0000 (12:21 -0600)
ASTERISK-27600
Reported by: Hamid R. Hashmi

Change-Id: I683d14d024650be04074b037b6300464519409f4

Makefile

index 6bc63a1a8158ded6037676d99c0282efbd10df10..23751d2353066dcba06561414d531c1abf5673d5 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