]>
git.ipfire.org Git - ipfire-logos.git/blob - icons/Makefile
fc6bfea8d6c42c79a887f4d4e83d306ca44f4b8a
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 ICON_NAME
= $(DISTRO_SNAME
)-logo
11 RESOLUTIONS
= 16x16
32x32
48x48
64x64
96x96
128x128
256x256
512x512
12 ICONS
= $(foreach res
,$(RESOLUTIONS
),$(ICON_NAME
)-$(res
).png
)
14 ICON_EPS
= ..
/objects
/ipfire-icon.eps
15 ICON_SVG
= $(patsubst %.eps
,%.svg
,$(ICON_EPS
))
17 all: $(ICON_SVG
) $(ICONS
)
21 $(ICON_SVG
): $(ICON_EPS
) Makefile
24 # Create a PNG icon file for each resolution.
25 $(ICONS
): $(ICON_EPS
) Makefile
26 convert
-resize
$(patsubst $(ICON_NAME
)-%.png
,%,$@
) \
31 -mkdir
-pv
$(DESTDIR
)$(PREFIX
)/share
/pixmaps
32 -mkdir
-pv
$(DESTDIR
)$(PREFIX
)/share
/icons
/$(DISTRO_NAME
)
34 for res in
$(RESOLUTIONS
); do \
35 mkdir
-pv
$(DESTDIR
)$(PREFIX
)/share
/icons
/$(DISTRO_NAME
)/$${res}/; \
36 cp
-vfl
$(ICON_NAME
)-$${res}.png \
37 $(DESTDIR
)$(PREFIX
)/share
/icons
/$(DISTRO_NAME
)/$${res}/$(ICON_NAME
).png
; \
41 cp
-vfl
$(ICON_NAME
)-$${res}.png \
42 $(DESTDIR
)$(PREFIX
)/share
/pixmaps
/$(DISTRO_SNAME
)-logo.png
; \
45 cp
-vfl
$(ICON_NAME
)-$${res}.png \
46 $(DESTDIR
)$(PREFIX
)/share
/pixmaps
/system-logo-white.png
; \
52 -mkdir
-pv
$(DESTDIR
)/etc
53 ln
-svf ..
$(PREFIX
)/share
/icons
/$(DISTRO_NAME
)/16x16
/$(ICON_NAME
).png \
54 $(DESTDIR
)/etc
/favicon.png
57 rm -vf
$(ICONS
) $(ICON_SVG
)