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 ui
11
12import: ext
13 $(GO_RUN) ./cmd/dict/main.go import
14
15ext:
16 gcc -shared -o ext/libsqlite3ext.so -fPIC ext/spellfix.c
17
18.PHONY: ext