From 9b5acacdd36ccfcf81d28916ac2371b2a97833b7 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Mon, 27 Jun 2022 18:46:30 -0700 Subject: Don't redo IWYU work when headers haven't changed. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c2838bf..0d154a8 100644 --- a/Makefile +++ b/Makefile @@ -59,11 +59,10 @@ endif ifdef iwyu -build/$(1)/iwyu.cpp: +build/$(1)/iwyu.cpp: $$(wildcard $(1)/*.h) @mkdir -p $$(dir $$@) @tools/iwyu-header $$(wildcard $(1)/*.h) > $$@ @$$(call iwyu,$$@) -.PHONY: build/$(1)/iwyu.cpp IWYU_CPPS += build/$(1)/iwyu.cpp -- cgit v1.2.3