aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-02-17 11:18:12 +0100
committerMattias Andrée <maandree@kth.se>2024-02-17 11:18:12 +0100
commit3303dd0cfe91f0686063066221ea55115ae3708f (patch)
tree7fac8cb98b28bcb56808b7658dc57797dc39c3b2 /Makefile
parentAdd check rule (diff)
downloadsimple-icon-theme-3303dd0cfe91f0686063066221ea55115ae3708f.tar.gz
simple-icon-theme-3303dd0cfe91f0686063066221ea55115ae3708f.tar.bz2
simple-icon-theme-3303dd0cfe91f0686063066221ea55115ae3708f.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--Makefile13
1 files changed, 8 insertions, 5 deletions
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