aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1fa3b49..eb08518 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,17 @@
BIN?=bin/dict
+GO_BUILD=go build -v --tags "fts5"
+GO_RUN=go run -v --tags "fts5"
+
buid: ext
- go build -v --tags "fts5" -o $(BIN) .
+ $(GO_BUILD) -o $(BIN) ./cmd/dict/main.go
run: ext
- go run -v --tags "fts5" .
+ $(GO_RUN) ./cmd/dict/main.go
+
import: ext
- go run -v --tags "fts5" . import
+ $(GO_RUN) ./cmd/dict/main.go import
ext:
gcc -shared -o ext/libsqlite3ext.so -fPIC ext/spellfix.c