Add build-time system config directory variable

This commit is contained in:
2025-06-21 18:01:08 +03:00
parent 3025fee2bb
commit ff087b196a
6 changed files with 13 additions and 11 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ GO ?= $(shell which go)
build:
mkdir -p build
cd src/; $(GO) build -ldflags "-w" -o ../build/typer
cd src/; $(GO) build -ldflags "-w -X 'main.sysconfdir=$(SYSCONFDIR)'" -o ../build/typer
install: build/typer
# Create directories
@@ -24,4 +24,4 @@ uninstall:
clean:
rm -r build/
.PHONY: build
.PHONY: build