From 57c782546739fde08138b00e2d0b3ba5f18fb676 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Fri, 19 Apr 2024 18:22:50 +0200 Subject: ref: Better organize the files --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3