-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile
30 lines (25 loc) · 858 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Build a normal binary for development.
all:
go build \
--tags "sqlite_icu" \
-ldflags "-X github.com/ironsmile/euterpe/src/version.Version=`git describe --tags --always`"
# Build a release binary which could be used in the distribution archive.
release:
go build \
--tags "sqlite_icu" \
-ldflags "-X github.com/ironsmile/euterpe/src/version.Version=`git describe --tags --always`" \
-o euterpe
# Compress it somewhat. It seems that the Euterpe binary gets more than 3 times smaller
# using upx.
upx euterpe
# Install in $GOPATH/bin.
install:
go install \
--tags "sqlite_icu" \
-ldflags "-X github.com/ironsmile/euterpe/src/version.Version=`git describe --tags --always`"
# Build distribution archive.
dist-archive:
./tools/build
# Start euterpe after building it from source.
run:
go run --tags "sqlite_icu" main.go -D -local-fs