summaryrefslogtreecommitdiff
path: root/test/images/Makefile
blob: 9b3d853e60268382393c5e818d33efa453c4dd24 (plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Makefile for generation of the test images
# Some images are not reproduced exactly so therefore they are committed to git.

 TYPES += argb
 TYPES += bmp
 TYPES += ff
 TYPES += gif
 TYPES += ico
 TYPES += jpg
#TYPES += lbm
 TYPES += ilbm
#TYPES += png
 TYPES += ppm
 TYPES += pgm
 TYPES += pbm
 TYPES += tga
 TYPES += tiff
 TYPES += webp
 TYPES += xbm
 TYPES += xpm
#TYPES += bz2
#TYPES += xz
#TYPES += gz
#TYPES += id3

.PHONY: all imgs_64
all: imgs_64

 TYPES_64 = $(filter-out png, $(TYPES)) ff.bz2 ff.gz ff.xz # png.mp3
 ALL_64  = $(addprefix icon-64., $(TYPES_64))
$(warning imgs_64=$(ALL_64))
imgs_64:  $(ALL_64)

%.argb: %.png
	imlib2_conv $< $@

%.bmp: %.png
	convert $< $@

%.ff: %.png
	imlib2_conv $< $@

%.gif: %.png
	convert $< $@

%.ico: %.png
	convert $< $@

%.jpg: %.png
	convert $< $@

%.ilbm: %.png
	convert $< $@

%.ppm: %.png
	convert $< $@

%.pgm: %.png
	convert $< $@

%.pbm: %.png
	convert -dither Floyd-Steinberg $< $@

%.tga: %.png
#	convert $< $@
	convert -flip $< $@	# Bug in convert?

%.tiff: %.png
	convert $< $@

%.webp: %.png
	convert $< $@

%.xbm: %.png
	convert -dither Floyd-Steinberg $< $@

%.xpm: %.png
	convert $< $@

%.bz2: %
	bzip2 -c $< > $@
%.xz: %
	xz -c $< > $@
%.gz: %
	gzip -c $< > $@

.PHONY: clean
clean:
	rm -f $(ALL_64)