aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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) > $@