(Fix): replaced hardcoded C.__uint32_t / C.__int32_t casts with a C helper function (auth/utmpx_time.h) that lets the compiler handle type conversion.
This commit is contained in:
18
Makefile
18
Makefile
@@ -33,9 +33,25 @@ RST := \033[0m
|
||||
|
||||
## ─── targets ────────────────────────────────────────────────
|
||||
|
||||
.PHONY: all build install uninstall clean test lint fmt vet \
|
||||
.PHONY: all deps build install uninstall clean test lint fmt vet \
|
||||
run-preview release help
|
||||
|
||||
deps: ## install system dependencies
|
||||
@printf " $(BLUE)%-10s$(RST) checking dependencies...\n" "DEPS"
|
||||
@if ! dpkg -s libpam0g-dev >/dev/null 2>&1; then \
|
||||
printf " $(YELLOW)%-10s$(RST) sudo apt install -y libpam0g-dev\n" ""; \
|
||||
sudo apt install -y libpam0g-dev; \
|
||||
fi
|
||||
@if ! dpkg -s build-essential >/dev/null 2>&1; then \
|
||||
printf " $(YELLOW)%-10s$(RST) sudo apt install -y build-essential\n" ""; \
|
||||
sudo apt install -y build-essential; \
|
||||
fi
|
||||
@if ! command -v go >/dev/null 2>&1; then \
|
||||
printf " $(RED)%-10s$(RST) go not found — install go 1.22+\n" ""; \
|
||||
exit 1; \
|
||||
fi
|
||||
@printf " $(GREEN)%-10s$(RST) dependencies ok\n" "DEPS"
|
||||
|
||||
all: build ## build the release binary
|
||||
|
||||
build: $(BUILD_DIR)/$(BINARY) ## compile latchd
|
||||
|
||||
Reference in New Issue
Block a user