Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (42 loc) · 1.59 KB
/
Copy pathMakefile
File metadata and controls
62 lines (42 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
SHELL := /bin/bash
.PHONY: all
all: $(shell echo ./dist/{simplified,pastel{,-icon,-uxga,-wqxga,-2400,-4k},{summer,autumn,winter}{,-icon}}.{svg,png,jpg,gif,webp,heic})
.PHONY: clean
clean:
rm -rf ./dist/*
./dist/pastel.svg: ./src/pastel.svg
cp $< $@
./dist/pastel-icon.svg: ./src/pastel.svg
inkscape --export-filename=./dist/pastel-icon.svg --export-id=512x512 ./src/pastel.svg
./dist/pastel-uxga.svg: ./src/pastel.svg
inkscape --export-filename=./dist/pastel-uxga.svg --export-id=1920x1200 ./src/pastel.svg
./dist/pastel-wqxga.svg: ./src/pastel.svg
inkscape --export-filename=./dist/pastel-wqxga.svg --export-id=2560x1600 ./src/pastel.svg
./dist/pastel-2400.svg: ./src/pastel.svg
inkscape --export-filename=./dist/pastel-2400.svg --export-id=2400x2400 ./src/pastel.svg
./dist/pastel-4k.svg: ./src/pastel.svg
inkscape --export-filename=./dist/pastel-4k.svg --export-id=3840x2160 ./src/pastel.svg
./dist/simplified.svg: ./src/simplified.svg
cp $< $@
./dist/summer.svg: ./src/summer.svg
cp $< $@
./dist/summer-icon.svg: ./src/summer.svg ./bin/icon-crop.rb
./bin/icon-crop.rb $< > $@
./dist/autumn.svg: ./src/autumn.svg
cp $< $@
./dist/autumn-icon.svg: ./src/autumn.svg ./bin/icon-crop.rb
./bin/icon-crop.rb $< > $@
./dist/winter.svg: ./src/winter.svg
cp $< $@
./dist/winter-icon.svg: ./src/winter.svg ./bin/icon-crop.rb
./bin/icon-crop.rb $< > $@
./dist/%.png: ./dist/%.svg
inkscape --export-type="png" --export-filename="$@" $<
./dist/%.jpg: ./dist/%.png
convert $< $@
./dist/%.gif: ./dist/%.png
convert $< $@
./dist/%.webp: ./dist/%.png
convert $< $@
./dist/%.heic: ./dist/%.png
convert $< $@