Lindenii Project Forge
Login

server

Lindenii Forge’s main backend daemon
Commit info
ID
2fd6b9155deb5b33031c21360a18f6406a4fe8ee
Author
Runxi Yu <me@runxiyu.org>
Author date
Mon, 17 Feb 2025 12:39:38 +0800
Committer
Runxi Yu <me@runxiyu.org>
Committer date
Mon, 17 Feb 2025 12:39:38 +0800
Actions
Makefile: Don't use --long in git-describe

We don't need the commit ID if it is known to match a tag.
.PHONY: clean 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) > $@
	printf 'package main\nconst VERSION="%s"\n' $(shell git describe --tags --always --dirty) > $@

clean:
	$(RM) forge version.go vendor