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

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

.PHONY: ext