Skip to content

Commit

Permalink
style: Disable IWYU by default to reduce noise
Browse files Browse the repository at this point in the history
  • Loading branch information
BenBE committed Nov 2, 2019
1 parent 6cdce36 commit a152b6e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ CFLAGS+= \
-DNDEBUG
endif

IWYU ?= $(shell which iwyu || echo true)
ifeq ($(USE_IWYU),1)
IWYU ?= $(shell which iwyu || echo @true)
else
IWYU ?= @true
endif

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

iwyu:
${MAKE} USE_IWYU=1 clean all

install:
$(INSTALL_PROGRAM) ddhcpd $(DESTDIR)$(prefix)/sbin/ddhcpd
$(INSTALL_PROGRAM) ddhcpdctl $(DESTDIR)$(prefix)/sbin/ddhcpdctl
Expand Down

0 comments on commit a152b6e

Please sign in to comment.