aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_gui-qt4/icons/Makefile
blob: aa10107a71e2535ed7e523a66f5c2cccae5ba6bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

NAME  := wpa_gui
SVG   := $(NAME).svg
SIZES := 16x16 22x22 32x32 48x48 64x64 128x128
ICONS := $(addsuffix .png,$(SIZES))
ICONS += $(addsuffix .xpm,16x16 32x32)

all: $(ICONS)

%.png:
	mkdir -p hicolor/$(@:.png=)/apps/
	inkscape $(SVG) --without-gui \
		--export-width=$(word 1,$(subst x, ,$(@:.png=)))  \
	        --export-height=$(word 2,$(subst x, ,$(@:.png=))) \
		--export-png=hicolor/$(@:.png=)/apps/$(NAME).png

%.xpm:
	mkdir -p pixmaps/
	convert hicolor/$(@:.xpm=)/apps/$(NAME).png pixmaps/$@

clean:
	$(RM) -r pixmaps hicolor