aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-04-19 18:22:50 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-04-19 18:22:50 +0200
commit57c782546739fde08138b00e2d0b3ba5f18fb676 (patch)
tree8f8a46ba9715359ab500d52f7728f97b876466d8 /Makefile
parent1e36d1ba1ba9659ffd01e06e93ffee670f842ff8 (diff)
downloaddict-57c782546739fde08138b00e2d0b3ba5f18fb676.tar.gz
dict-57c782546739fde08138b00e2d0b3ba5f18fb676.tar.bz2
dict-57c782546739fde08138b00e2d0b3ba5f18fb676.zip
ref: Better organize the files
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