aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: a55858e6c837b6dabee9cec391cc97e8ea851550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
all: clean
	make generate
	
generate: preview.png versions update-cache

preview.png:
	$(shell find "scalable/" -type f -name "*.png" -not -path ".git/*" -not -path 'scalable/animations/*' -not -path 'scalable/mimetypes/*' | sort | feh -m -y 96 -E 96 -s -p -b trans -O preview.png -f-)

preview_mimetypes.png:
	$(shell find "scalable/mimetypes" -type f -name "*.png" | sort | feh -m -y 256 -E 256 -W 8192 -s -p -b trans -O preview_mimetypes.png -f-)

versions:
	find scalable/ -name '*.png' -exec ./generate.sh '{}' \;

update-cache:
	gtk-update-icon-cache `pwd`

clean:
	rm -f preview.png preview_mimetypes.png
..