Diff

Differences From Artifact [38e6b0ee90]:

To Artifact [1e993d8743]:


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
all:
	@echo "Nothing to do."

tcpdump-%x8.png: tcpdump.png
	@echo convert "$^" -colors 255 `echo "$@" | sed 's@^.*-\([0-9]*x[0-9]*\)x\([0-9]\).png@ -resize \1 -depth \2@'`  $@; \
	convert "$^" -colors 255 `echo "$@" | sed 's@^.*-\([0-9]*x[0-9]*\)x\([0-9]\).png@ -resize \1 -depth \2@'`  $@

tcpdump-%x4.png: tcpdump.png
	@echo convert "$^" -colors 15 `echo "$@" | sed 's@^.*-\([0-9]*x[0-9]*\)x\([0-9]\).png@ -resize \1 -depth \2@'`  $@; \
	convert "$^" -colors 15 `echo "$@" | sed 's@^.*-\([0-9]*x[0-9]*\)x\([0-9]\).png@ -resize \1 -depth \2@'`  $@

%.png.pgm: %.png
	pngtopnm -alpha "$^" > "$@"

%x4.png.ppm: %x4.png
	pngtopnm "$^" | ppmquant 15 > "$@"

%x8.png.ppm: %x8.png
	pngtopnm "$^" | ppmquant 255 > "$@"

%.png.ico: %.png.ppm %.png.pgm
	ppmtowinicon -andpgms -output "$@" $^


tcpdump.ico: tcpdump-16x16x4.png.ppm tcpdump-16x16x4.png.pgm tcpdump-16x16x8.png.ppm tcpdump-16x16x8.png.pgm tcpdump-32x32x4.png.ppm tcpdump-32x32x4.png.pgm tcpdump-32x32x8.png.ppm tcpdump-32x32x8.png.pgm tcpdump-48x48x4.png.ppm tcpdump-48x48x4.png.pgm tcpdump-48x48x8.png.ppm tcpdump-48x48x8.png.pgm
	ppmtowinicon -andpgms -output "$@" $^

clean:
	rm -f *.png.ico *.png.ppm *.png.pgm tcpdump.ico tcpdump-*.png

.PHONY: clean all



<
<
<
<




|
|
|
<
<

|
<
|
<
<
>

|
|


|


1
2
3




4
5
6
7
8
9
10


11
12

13


14
15
16
17
18
19
20
21
22
all:
	@echo "Nothing to do."





tcpdump-%x4.png: tcpdump.png
	@echo convert "$^" -colors 15 `echo "$@" | sed 's@^.*-\([0-9]*x[0-9]*\)x\([0-9]\).png@ -resize \1 -depth \2@'`  $@; \
	convert "$^" -colors 15 `echo "$@" | sed 's@^.*-\([0-9]*x[0-9]*\)x\([0-9]\).png@ -resize \1 -depth \2@'`  $@

tcpdump-%x8.png: tcpdump.png
	@echo convert "$^" -colors 255 `echo "$@" | sed 's@^.*-\([0-9]*x[0-9]*\)x\([0-9]\).png@ -resize \1 -depth \2@'`  $@; \
	convert "$^" -colors 255 `echo "$@" | sed 's@^.*-\([0-9]*x[0-9]*\)x\([0-9]\).png@ -resize \1 -depth \2@'`  $@



tcpdump-%x32.png: tcpdump.png

	@echo convert "$^" `echo "$@" | sed 's@^.*-\([0-9]*x[0-9]*\)x\([0-9]*\).png@ -resize \1 -depth \2@'`  $@; \


	convert "$^" `echo "$@" | sed 's@^.*-\([0-9]*x[0-9]*\)x\([0-9]*\).png@ -resize \1 -depth \2@'`  $@

tcpdump.ico: tcpdump-16x16x4.png tcpdump-16x16x8.png tcpdump-16x16x32.png tcpdump-24x24x4.png tcpdump-24x24x8.png tcpdump-24x24x32.png tcpdump-32x32x4.png tcpdump-32x32x8.png tcpdump-32x32x32.png tcpdump-48x48x4.png tcpdump-48x48x8.png tcpdump-48x48x32.png tcpdump-256x256x4.png tcpdump-256x256x8.png tcpdump-256x256x32.png
	convert $^ "$@"

clean:
	rm -f tcpdump.ico tcpdump-*.png

.PHONY: clean all