mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
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.
This commit is contained in:
parent
63fb3721ef
commit
45332ab38c
@ -63,8 +63,11 @@ clean:
|
|||||||
@rm -f *.o $(LWIPLIBCOMMON) $(APPLIB) lwip_unittests *.s $(DEPFILES) *.core core lwip_unittests.xml
|
@rm -f *.o $(LWIPLIBCOMMON) $(APPLIB) lwip_unittests *.s $(DEPFILES) *.core core lwip_unittests.xml
|
||||||
|
|
||||||
depend dep: $(DEPFILES)
|
depend dep: $(DEPFILES)
|
||||||
|
@true
|
||||||
|
|
||||||
|
ifneq ($(MAKECMDGOALS),clean)
|
||||||
include $(DEPFILES)
|
include $(DEPFILES)
|
||||||
|
endif
|
||||||
|
|
||||||
.depend_test: $(TESTFILES)
|
.depend_test: $(TESTFILES)
|
||||||
$(CCDEP) $(CFLAGS) -MM $^ > .depend_test || rm -f .depend_test
|
$(CCDEP) $(CFLAGS) -MM $^ > .depend_test || rm -f .depend_test
|
||||||
|
Loading…
Reference in New Issue
Block a user