diff options
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -84,6 +84,18 @@ include ${DEPFILES} | |||
| 84 | 84 | ||
| 85 | $(foreach part,${PARTS},$(eval $(call mklib,${part}))) | 85 | $(foreach part,${PARTS},$(eval $(call mklib,${part}))) |
| 86 | 86 | ||
| 87 | ifdef iwyu | ||
| 88 | |||
| 89 | build/iwyu.cpp: | ||
| 90 | @mkdir -p $(dir $@) | ||
| 91 | @tools/iwyu-header $(wildcard *.h) > $@ | ||
| 92 | @$(call iwyu,$@) | ||
| 93 | .PHONY: build/iwyu.cpp | ||
| 94 | |||
| 95 | IWYU_CPPS += build/iwyu.cpp | ||
| 96 | |||
| 97 | endif | ||
| 98 | |||
| 87 | MAINOBJS := $(patsubst %.cpp,build/%.o,$(wildcard *.cpp)) | 99 | MAINOBJS := $(patsubst %.cpp,build/%.o,$(wildcard *.cpp)) |
| 88 | MAINOBJS += build/git-tag.o | 100 | MAINOBJS += build/git-tag.o |
| 89 | 101 | ||
