Skip to content

Commit a152b6e

Browse files
committed
style: Disable IWYU by default to reduce noise
1 parent 6cdce36 commit a152b6e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ CFLAGS+= \
5959
-DNDEBUG
6060
endif
6161

62-
IWYU ?= $(shell which iwyu || echo true)
62+
ifeq ($(USE_IWYU),1)
63+
IWYU ?= $(shell which iwyu || echo @true)
64+
else
65+
IWYU ?= @true
66+
endif
6367

6468
prefix?=/usr
6569
INSTALL = install
@@ -91,6 +95,9 @@ clean:
9195
style:
9296
astyle --mode=c --options=none -s2 -f -j -k1 -W3 -p -U -H *.c *.h
9397

98+
iwyu:
99+
${MAKE} USE_IWYU=1 clean all
100+
94101
install:
95102
$(INSTALL_PROGRAM) ddhcpd $(DESTDIR)$(prefix)/sbin/ddhcpd
96103
$(INSTALL_PROGRAM) ddhcpdctl $(DESTDIR)$(prefix)/sbin/ddhcpdctl

0 commit comments

Comments
 (0)