diff options
author | Volpeon <git@volpeon.ink> | 2021-11-11 18:08:43 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-11-11 18:08:43 +0100 |
commit | f8d5584593a0a7e73e4b38e96c2c7f5bf56d3471 (patch) | |
tree | e35bacd142c05f960dd3082ee5958a5130c27f05 /Makefile | |
parent | Smaller graph nodes (diff) | |
download | iro-icons-f8d5584593a0a7e73e4b38e96c2c7f5bf56d3471.tar.gz iro-icons-f8d5584593a0a7e73e4b38e96c2c7f5bf56d3471.tar.bz2 iro-icons-f8d5584593a0a7e73e4b38e96c2c7f5bf56d3471.zip |
Added music, updated graph, better makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 38 |
1 files changed, 24 insertions, 14 deletions
@@ -1,20 +1,30 @@ | |||
1 | all: build | 1 | FILES_SRC := $(shell find src/icons -type f -name "*.svg") |
2 | FILES := $(patsubst src/icons/%.svg,output/%.svg,$(FILES_SRC)) | ||
2 | 3 | ||
3 | clean_output: | 4 | all: files showcase/index.html |
4 | @mkdir -p output | ||
5 | @rm -rf output/* | ||
6 | 5 | ||
7 | clean_showcase: | 6 | files: $(FILES) |
8 | @mkdir -p showcase | ||
9 | @rm -rf showcase/* | ||
10 | 7 | ||
11 | icons: clean_output | 8 | ### |
12 | @scripts/build.sh | ||
13 | 9 | ||
14 | showcase: clean_showcase | 10 | output/%.svg: src/icons/%.svg | output |
15 | @scripts/build_showcase.sh | 11 | scour -i "$<" \ |
12 | --enable-viewboxing \ | ||
13 | --enable-id-stripping \ | ||
14 | --enable-comment-stripping \ | ||
15 | --remove-descriptive-elements \ | ||
16 | --strip-xml-prolog \ | ||
17 | --shorten-ids | sed -z 's/\(fill\|stroke\)="#.\{3,6\}"/\1="currentColor"/g;s/stroke-width="[0-9.]*"//g;s/stroke-linecap="[a-z]*"//g;s/stroke-linejoin="[a-z]*"//g;s/style="[ a-z0-9:-]*"//g' > "$@" | ||
16 | 18 | ||
17 | build: icons | 19 | showcase/index.html: src/showcase/index.html $(FILES) | showcase |
18 | $(MAKE) showcase | 20 | scripts/build_showcase.sh |
19 | 21 | ||
20 | .PHONY: all clean_output clean_showcase icons showcase build | 22 | showcase: |
23 | mkdir -p showcase | ||
24 | |||
25 | output: | ||
26 | mkdir -p output | ||
27 | |||
28 | ### | ||
29 | |||
30 | .PHONY: all | ||