diff options
author | Mattias Andrée <maandree@kth.se> | 2024-02-17 11:18:12 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-02-17 11:18:12 +0100 |
commit | 3303dd0cfe91f0686063066221ea55115ae3708f (patch) | |
tree | 7fac8cb98b28bcb56808b7658dc57797dc39c3b2 /Makefile | |
parent | Add check rule (diff) | |
download | simple-icon-theme-12.tar.gz simple-icon-theme-12.tar.bz2 simple-icon-theme-12.tar.xz |
Reimplement check/find-errors in C so nonstandard flags (-o and -r) for grep(1) are not required12
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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 |