From 3303dd0cfe91f0686063066221ea55115ae3708f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 17 Feb 2024 11:18:12 +0100 Subject: Reimplement check/find-errors in C so nonstandard flags (-o and -r) for grep(1) are not required MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 065143f..3bf20e2 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,8 @@ include $(CONFIGFILE) all: -generated.mk: $(CONFIGFILE) icons.mk Makefile check-icon-listing - $(DEVCHECK) check/find-errors +generated.mk: $(CONFIGFILE) icons.mk Makefile find-errors check-icon-listing + $(DEVCHECK) ./find-errors $(DEVCHECK) check/find-unlisted-icons $(DEVCHECK) check/find-duplicates $(DEVCHECK) ./check-icon-listing @@ -28,11 +28,14 @@ generated.mk: $(CONFIGFILE) icons.mk Makefile check-icon-listing printf '\n' >> $@ @chmod -- a-w $@ +find-errors: check/find-errors.c + $(CC) -o $@ $< $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) + check-icon-listing: check/check-icon-listing.c $(CC) -o $@ $< $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -check: check-icon-listing - $(UNIMPORTANT_CHECK) check/find-errors +check: find-errors check-icon-listing + $(UNIMPORTANT_CHECK) ./find-errors $(UNIMPORTANT_CHECK) check/find-unlisted-icons $(UNIMPORTANT_CHECK) check/find-duplicates $(UNIMPORTANT_CHECK) ./check-icon-listing @@ -40,7 +43,7 @@ check: check-icon-listing clean: -rm -rf -- index.theme *.o *.su conv generated.mk scalable-"$(DIR_SUFFIX_)" - -rm -f -- check-icon-listing + -rm -f -- find-errors check-icon-listing -for s in $(SIZES); do printf "$${s}x$${s}$(DIR_SUFFIX)\n"; done | xargs rm -rf -- -+cd apps && $(MAKE) clean -- cgit v1.2.3-70-g09d2