aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-08-18 01:18:48 +0800
committerRunxi Yu <me@runxiyu.org>2025-08-18 01:18:48 +0800
commita85d1d8d6b25e13500b0895209b6343f0b2bc435 (patch)
tree43d41aa7009bbc39f01b0becd0a7acd588cdf262 /Makefile
parentTIMESTAMPTZ, not TIMESTAMPZ (diff)
downloadforge-a85d1d8d6b25e13500b0895209b6343f0b2bc435.tar.gz
forge-a85d1d8d6b25e13500b0895209b6343f0b2bc435.tar.zst
forge-a85d1d8d6b25e13500b0895209b6343f0b2bc435.zip
Add sqlc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c4fd59a..3034676 100644
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,9 @@ CFLAGS = -Wall -Wextra -pedantic -std=c99 -D_GNU_SOURCE
all: dist/forged dist/git2d dist/hookc
-dist/forged: $(shell git ls-files forged)
+dist/forged: $(shell git ls-files forged) $(shell git ls-files sql)
mkdir -p dist
+ sqlc generate
CGO_ENABLED=0 go build -o dist/forged -ldflags '-extldflags "-f no-PIC -static"' -tags 'osusergo netgo static_build' ./forged
dist/git2d: $(wildcard git2d/*.c)