cb5c65e701f420f4d045085df40367273c3ee141
[libeap.git] / wpa_supplicant / wpa_gui-qt4 / icons / Makefile
1 #!/usr/bin/make -f
2
3 NAME  := wpa_gui
4 SVG   := $(NAME).svg
5 SIZES := 16x16 22x22 32x32 48x48 64x64 128x128
6 ICONS := $(addsuffix .png,$(SIZES))
7 ICONS += $(addsuffix .xpm,$(NAME) $(NAME)-16)
8
9 all: $(ICONS)
10
11 %.png:
12         mkdir -p hicolor/$(@:.png=)/apps/
13         inkscape $(SVG) --without-gui \
14                 --export-width=$(word 1,$(subst x, ,$(@:.png=)))  \
15                 --export-height=$(word 2,$(subst x, ,$(@:.png=))) \
16                 --export-png=hicolor/$(@:.png=)/apps/$(NAME).png
17
18 $(NAME).xpm:
19         mkdir -p pixmaps/
20         convert hicolor/32x32/apps/$(NAME).png pixmaps/$@
21
22 $(NAME)-16.xpm:
23         mkdir -p pixmaps/
24         convert hicolor/16x16/apps/$(NAME).png pixmaps/$@
25
26 clean:
27         $(RM) -r pixmaps hicolor