2008-09-24 11:19:31 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2009-11-19 20:03:25 +01:00
|
|
|
NAMES := wpa_gui ap laptop
|
2008-09-24 11:19:31 +02:00
|
|
|
SIZES := 16x16 22x22 32x32 48x48 64x64 128x128
|
2009-11-19 19:49:51 +01:00
|
|
|
ICONS := $(addsuffix .png, $(foreach name, $(NAMES), $(foreach size, $(SIZES), $(size)/$(name))))
|
|
|
|
ICONS += $(addsuffix .xpm, $(NAMES))
|
2008-09-24 11:19:31 +02:00
|
|
|
|
|
|
|
all: $(ICONS)
|
|
|
|
|
|
|
|
%.png:
|
2009-11-19 19:49:51 +01:00
|
|
|
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 /, , $@))
|
2008-09-24 11:19:31 +02:00
|
|
|
|
2009-11-19 19:49:51 +01:00
|
|
|
%.xpm:
|
2008-09-24 11:19:31 +02:00
|
|
|
mkdir -p pixmaps/
|
2009-11-19 19:49:51 +01:00
|
|
|
convert hicolor/16x16/apps/$(@:.xpm=.png) pixmaps/$(@:.xpm=-16.xpm)
|
|
|
|
convert hicolor/32x32/apps/$(@:.xpm=.png) pixmaps/$@
|
2008-09-24 11:19:31 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) -r pixmaps hicolor
|