aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: eb08518ffbba68cbace6e59867f37074cb02adac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
		

import: ext
	$(GO_RUN) ./cmd/dict/main.go import

ext:
	gcc -shared -o ext/libsqlite3ext.so -fPIC ext/spellfix.c

.PHONY: ext