aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_gui-qt4/icons
diff options
context:
space:
mode:
authorMike Shepherd <fatmike@gmail.com>2009-11-19 18:49:51 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-19 18:49:51 (GMT)
commit720e23b2ae301cf81a09d24001d362bd1b2c124f (patch)
tree542eefd4f7884a9b97ebd2595fd3734fd5e59757 /wpa_supplicant/wpa_gui-qt4/icons
parent8f089e7ff8541ea67ada7b663782128c41d607a5 (diff)
downloadhostap-720e23b2ae301cf81a09d24001d362bd1b2c124f.zip
hostap-720e23b2ae301cf81a09d24001d362bd1b2c124f.tar.gz
hostap-720e23b2ae301cf81a09d24001d362bd1b2c124f.tar.bz2
wpa_gui: Add support for multiple icon files
Diffstat (limited to 'wpa_supplicant/wpa_gui-qt4/icons')
-rw-r--r--wpa_supplicant/wpa_gui-qt4/icons/Makefile26
1 files changed, 11 insertions, 15 deletions
diff --git a/wpa_supplicant/wpa_gui-qt4/icons/Makefile b/wpa_supplicant/wpa_gui-qt4/icons/Makefile
index cb5c65e..d7f2ea1 100644
--- a/wpa_supplicant/wpa_gui-qt4/icons/Makefile
+++ b/wpa_supplicant/wpa_gui-qt4/icons/Makefile
@@ -1,27 +1,23 @@
#!/usr/bin/make -f
-NAME := wpa_gui
-SVG := $(NAME).svg
+NAMES := wpa_gui
SIZES := 16x16 22x22 32x32 48x48 64x64 128x128
-ICONS := $(addsuffix .png,$(SIZES))
-ICONS += $(addsuffix .xpm,$(NAME) $(NAME)-16)
+ICONS := $(addsuffix .png, $(foreach name, $(NAMES), $(foreach size, $(SIZES), $(size)/$(name))))
+ICONS += $(addsuffix .xpm, $(NAMES))
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
+ mkdir -p hicolor/$(word 1, $(subst /, ,$(@)))/apps/
+ inkscape $(subst .png,.svg, $(word 2, $(subst /, , $(@)))) --without-gui \
+ --export-width=$(word 1, $(subst x, , $(@))) \
+ --export-height=$(word 2, $(subst x, , $(subst /, , $(@)))) \
+ --export-png=hicolor/$(word 1, $(subst /, ,$(@)))/apps/$(word 2, $(subst /, , $@))
-$(NAME).xpm:
+%.xpm:
mkdir -p pixmaps/
- convert hicolor/32x32/apps/$(NAME).png pixmaps/$@
-
-$(NAME)-16.xpm:
- mkdir -p pixmaps/
- convert hicolor/16x16/apps/$(NAME).png pixmaps/$@
+ convert hicolor/16x16/apps/$(@:.xpm=.png) pixmaps/$(@:.xpm=-16.xpm)
+ convert hicolor/32x32/apps/$(@:.xpm=.png) pixmaps/$@
clean:
$(RM) -r pixmaps hicolor