From 5d0b36cf87ee94c690d11c0beab48f4dadc6fc52 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Sun, 10 Aug 2025 02:30:00 -0400 Subject: Change db schema; remove aliases, add fts5 integration Greatly simplify db schema by removing alias functionality. Create fts5 tables for text search over paths, headings, titles, meta, authors, and links. --- makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 718df92..ab35497 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,5 @@ BINS := atlas +BUILD_TAGS := icu fts5 SRC := main.go $(wildcard cmd/*.go) $(wildcard pkg/*/*.go) INSTALL_PATH := ~/.local/bin @@ -7,10 +8,10 @@ INSTALL_PATH := ~/.local/bin all: $(BINS) atlas: $(SRC) - go build -o $@ $< + go build -tags "$(BUILD_TAGS)" -o $@ $< test: - go test ./... + go test -tags "$(BUILD_TAGS)" ./... ######## # @@ -32,6 +33,7 @@ info: @echo "SRC: $(SRC)" @echo "BINS: $(BINS)" @echo "INSTALL_PATH: $(INSTALL_PATH)" + @echo "BUILD_TAGS: $(BUILD_TAGS)" clean: rm -f $(BINS) *.db *.db-shm *.db-wal -- cgit v1.2.3