Skip to content

Commit

Permalink
Add make fixincludes target.
Browse files Browse the repository at this point in the history
All source files were already updated with IWYU in commit 7a9bc3d,
so no source file changes are needed.
  • Loading branch information
fragglet committed Oct 13, 2024
1 parent 0719f85 commit 9e00636
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
IWYU = iwyu
IWYU_FLAGS = --error --mapping_file=.iwyu-overrides.imp
IWYU_TRANSFORMED_FLAGS = $(patsubst %,-Xiwyu %,$(IWYU_FLAGS)) $(CFLAGS)

EXTRA_DIST = sopwith.ico

appdir = $(prefix)/share/applications
Expand Down Expand Up @@ -43,6 +47,11 @@ COMMON_SOURCES = \
vid_vga.c \
yocton.c yocton.h

fixincludes:
for d in *.c */*.c; do \
$(IWYU) $(IWYU_TRANSFORMED_FLAGS) 2>&1 $$d | fix_include; \
done

if HAVE_WINDRES
sopwith_SOURCES = $(COMMON_SOURCES) resource.rc
else
Expand Down

0 comments on commit 9e00636

Please sign in to comment.