aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: ac4cf99808199c353cb9d7de59854c4eac616135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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-)
	$(shell for path in $(ls -d scalable/*/); do montage -label '\n%t'  $(find $path -type f) -tile 5 -background white -geometry 96x96+24+24  doc/img/$(echo $path | cut -d "/" -f2).jpg; done)

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
..