From ed4a8f9068a2a880280954db7f9424bbdc1dee5a Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 17 Feb 2025 02:03:37 +0800 Subject: *: Restructure build system --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7232182..a35195c 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,13 @@ .PHONY: clean version.go -forge: $(filter-out forge,$(wildcard *)) version.go +CFLAGS = -Wall -Wextra -Werror -pedantic -std=c99 -D_GNU_SOURCE + +forge: $(filter-out forge,$(wildcard *)) version.go git_hooks_client/*.c git_hooks_client/git_hooks_client go mod vendor go build -o $@ +git_hooks_client/git_hooks_client: + version.go: printf 'package main\nconst VERSION="%s"\n' $(shell git describe --tags --long --always --dirty) > $@ -- cgit v1.2.3