mirror of https://github.com/nealey/spongy
25 lines
474 B
Makefile
25 lines
474 B
Makefile
ICONS += app/icon-16.png
|
|
ICONS += app/icon-32.png
|
|
ICONS += app/icon-48.png
|
|
ICONS += app/icon-128.png
|
|
ICONS += app/icon-256.png
|
|
|
|
all: icons serverside
|
|
|
|
serverside: spongy spongy.cgi
|
|
|
|
spongy: src/spongy/spongy.go
|
|
GOPATH=$(CURDIR) go build -v $@
|
|
|
|
spongy.cgi: src/spongy.cgi/spongy.cgi.go
|
|
GOPATH=$(CURDIR) go build -v $@
|
|
chmod +s $@
|
|
|
|
icons: $(ICONS)
|
|
|
|
app/icon-%.png: chat.svg
|
|
inkscape --export-png=$@ --export-width=$* $<
|
|
|
|
package: icons
|
|
cd app && zip -ru ../package.zip .
|