summaryrefslogtreecommitdiff
path: root/icon/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'icon/Makefile')
-rw-r--r--icon/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/icon/Makefile b/icon/Makefile
index 6ea29fd..07dcd3c 100644
--- a/icon/Makefile
+++ b/icon/Makefile
@@ -1,11 +1,13 @@
.PHONY: all clean
-all: on_unix.go off_unix.go error_unix.go wait0_unix.go wait1_unix.go wait2_unix.go wait3_unix.go
+all: 18_on_unix.go 18_off_unix.go 18_blocked_unix.go 18_wait_0_unix.go 18_wait_1_unix.go 18_wait_2_unix.go 18_wait_3_unix.go
-%_unix.go: %.png
+go_array_name = "$(shell echo $(@) | sed -e 's/18_\(.*\)_unix\.go/\u\1/' -e 's/_//')"
+
+18_%_unix.go: png/18/vpn_%.png
echo "//+build linux darwin" > $@
echo "" >> $@
- cat $< | 2goarray `echo ${<} | python -c "print raw_input().capitalize()[:-4]"` icon >> $@
+ cat $< | 2goarray $(go_array_name) icon >> $@
clean:
rm *_unix.go