revert between 56095 -> 55830 in arch
[AROS.git] / workbench / network / WirelessManager / wpa_supplicant / wpa_gui-qt4 / icons / Makefile
blob8e0b12f3b34dca0ad0039bcfbddfda5d86363e63
1 #!/usr/bin/make -f
3 NAMES := wpa_gui ap laptop
4 SIZES := 16x16 22x22 32x32 48x48 64x64 128x128
5 ICONS := $(addsuffix .png, $(foreach name, $(NAMES), $(foreach size, $(SIZES), $(size)/$(name))))
6 ICONS += $(addsuffix .xpm, $(NAMES))
8 all: $(ICONS)
10 %.png:
11 mkdir -p hicolor/$(word 1, $(subst /, ,$(@)))/apps/
12 inkscape $(subst .png,.svg, $(word 2, $(subst /, , $(@)))) --without-gui \
13 --export-width=$(word 1, $(subst x, , $(@))) \
14 --export-height=$(word 2, $(subst x, , $(subst /, , $(@)))) \
15 --export-png=hicolor/$(word 1, $(subst /, ,$(@)))/apps/$(word 2, $(subst /, , $@))
17 %.xpm:
18 mkdir -p pixmaps/
19 convert hicolor/16x16/apps/$(@:.xpm=.png) pixmaps/$(@:.xpm=-16.xpm)
20 convert hicolor/32x32/apps/$(@:.xpm=.png) pixmaps/$@
22 clean:
23 $(RM) -r pixmaps hicolor