blob: 8190661729693584d1254d5ffb5cef420e25bc75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
BIN?=bin/dict
GO_BUILD=go build -v --tags "fts5"
GO_RUN=go run -v --tags "fts5"
buid: ext
$(GO_BUILD) -o $(BIN) ./cmd/dict/main.go
run: ext
$(GO_RUN) ./cmd/dict/main.go ui
import: ext
$(GO_RUN) ./cmd/dict/main.go import
serve: ext
$(GO_RUN) ./cmd/dict/main.go serve
ext:
gcc -shared -o ext/libsqlite3ext.so -fPIC ext/spellfix.c
.PHONY: ext
|