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