summaryrefslogtreecommitdiff
path: root/icon/Makefile
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2018-02-13 17:26:00 -0800
committerelijah <elijah@riseup.net>2018-02-13 17:26:00 -0800
commit352b8dfbe7df572e5ed67f0a2ccedf6f77cdb3b2 (patch)
tree93f839367ea473624a7eff26619f11d82d6c4631 /icon/Makefile
parent560bb8f1e5a594d88775c46073256d2e94f3f6d8 (diff)
[feat] new icons
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