aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-02-09 00:32:53 +0100
committerMattias Andrée <maandree@kth.se>2024-02-09 00:32:53 +0100
commit29e592f91ccc52e6a06a35500246de517f312be6 (patch)
tree85f403a112d059b685eae28142a519231a00ba89 /Makefile
parentBig update (diff)
downloadsimple-icon-theme-29e592f91ccc52e6a06a35500246de517f312be6.tar.gz
simple-icon-theme-29e592f91ccc52e6a06a35500246de517f312be6.tar.bz2
simple-icon-theme-29e592f91ccc52e6a06a35500246de517f312be6.tar.xz
Nothing major, except DEVCHECK doesn't take forever anymore (it's indistiguousable for instant)
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0b7faea..32c20a0 100644
--- a/Makefile
+++ b/Makefile
@@ -7,10 +7,11 @@ include $(CONFIGFILE)
all:
-generated.mk: $(CONFIGFILE) icons.mk Makefile
+generated.mk: $(CONFIGFILE) icons.mk Makefile check-icon-listing
$(DEVCHECK) check/find-errors
$(DEVCHECK) check/find-unlisted-icons
- $(DEVCHECK) check/check-icons-listing
+ $(DEVCHECK) check/find-duplicates
+ $(DEVCHECK) ./check-icon-listing
@test ! -e $@ || chmod -- u+w $@
printf '\043 %s\n' 'This file is generated from Makefile' > $@
printf '\n%1i$$(DIR_SUFFIX)/%%.png: scalable$$(DIR_SUFFIX)/%%.svg conv\n\t./conv $$@\n' $(SIZES) |\
@@ -26,8 +27,12 @@ generated.mk: $(CONFIGFILE) icons.mk Makefile
printf '\n' >> $@
@chmod -- a-w $@
+check-icon-listing: check/check-icon-listing.c
+ $(CC) -o $@ $< $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
+
clean:
-rm -rf -- index.theme *.o *.su conv generated.mk scalable-"$(DIR_SUFFIX_)"
+ -rm -f -- check-icon-listing
-for s in $(SIZES); do printf "$${s}x$${s}$(DIR_SUFFIX)\n"; done | xargs rm -rf --
# These are just added so autocompletion works with them