blob: b8a4aeadb2e4c8c89e6137d548aa8f8179c68b72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Generating translations is rather slow; so don’t do that by default
all:
TEMPL_EXPERIMENT=rawgo go generate ./template
go build
all-i18n:
TEMPL_EXPERIMENT=rawgo go generate ./template ./lib
find . -name out.gotext.json | mcp -b sed s/out/messages/
go build
watch:
ls euro-cash.eu | entr -r ./euro-cash.eu -no-email -port $${PORT:-8080}
# Build a release tarball for easy deployment
# TODO: Minify CSS
release: all-i18n
[ -n "$$GOOS" -a -n "$$GOARCH" ]
tar -cf euro-cash.eu-$$GOOS-$$GOARCH.tar.gz euro-cash.eu data/ static/
|