From 45332ab38c8b8cde1835d28c97acc5174728154e Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Thu, 3 Dec 2020 21:48:07 +0100 Subject: [PATCH] ports/unix/check: Fix 'make dep' It used to fail with this error after building the depfiles: clang -DLWIP_NOASSERT_ON_ERROR -I/usr/include/check -I../../../../src/../test/unit -Wno-gnu-zero-variadic-macro-arguments -g -DLWIP_DEBUG -Wall -pedantic -Werror -Wparentheses -Wsequence-point -Wswitch-default -Wextra -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wc++-compat -Wwrite-strings -Wold-style-definition -Wcast-align -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Wunreachable-code -Wuninitialized -Wmissing-prototypes -Wredundant-decls -Waggregate-return -Wlogical-not-parentheses -fsanitize=address -fsanitize=undefined -fno-sanitize=alignment -Wdocumentation -Wno-documentation-deprecated-sync -I. -I../../.. -I../../../../src/include -I../../../ports/unix/port/include -c clang-11: error: no input files Also don't include depfiles while cleaning, to avoid generating them just to remove them. --- contrib/ports/unix/check/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/ports/unix/check/Makefile b/contrib/ports/unix/check/Makefile index 4200c368..383cfaef 100644 --- a/contrib/ports/unix/check/Makefile +++ b/contrib/ports/unix/check/Makefile @@ -63,8 +63,11 @@ clean: @rm -f *.o $(LWIPLIBCOMMON) $(APPLIB) lwip_unittests *.s $(DEPFILES) *.core core lwip_unittests.xml depend dep: $(DEPFILES) + @true +ifneq ($(MAKECMDGOALS),clean) include $(DEPFILES) +endif .depend_test: $(TESTFILES) $(CCDEP) $(CFLAGS) -MM $^ > .depend_test || rm -f .depend_test