wpa_supplicant: ignore Make.defs if it does not exist
authorHeesub Shin <heesub.shin@samsung.com>
Thu, 20 Apr 2017 16:15:49 +0000 (01:15 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Thu, 20 Apr 2017 17:08:13 +0000 (02:08 +0900)
Use the '-include' directive instead of 'include' to suppress error
messages from make as following:

    make[2]: Entering directory '/home/heesub/Documents/tinyara/apps/wpa_supplicant'
    Makefile:36: /home/heesub/Documents/tinyara/os/Make.defs: No such file or directory
    make[2]: *** No rule to make target '/home/heesub/Documents/tinyara/os/Make.defs'.  Stop.
    make[2]: Leaving directory '/home/heesub/Documents/tinyara/apps/wpa_supplicant'
    Makefile:107: recipe for target 'wpa_supplicant/_clean' failed
    make[1]: *** [wpa_supplicant/_clean] Error 2

I am not sure that including Make.defs at $(TOPDIR) is really necessary.
Otherwise, it might be better to remove the inclusion.

Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
apps/wpa_supplicant/Makefile

index b9b7ccd..3a69b3c 100644 (file)
@@ -33,7 +33,7 @@
 #
 ############################################################################
 
-include $(TOPDIR)/Make.defs
+-include $(TOPDIR)/Make.defs
 
 CONFIG_WPA_SUPPLICANT_PRIORITY ?= SCHED_PRIORITY_DEFAULT
 CONFIG_WPA_SUPPLICANT_STACKSIZE ?= 16384