Lindenii Project Forge
Login

server

Lindenii Forge’s main backend daemon
Commit info
ID
cac5be21a06bad465a8ff06aa691e6d3c0b29475
Author
Runxi Yu <me@runxiyu.org>
Author date
Thu, 27 Mar 2025 23:35:47 +0800
Committer
Runxi Yu <me@runxiyu.org>
Committer date
Thu, 27 Mar 2025 23:35:47 +0800
Actions
Attempt to fix that lint issue
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileContributor: Runxi Yu <https://runxiyu.org>

.PHONY: clean version.go

CFLAGS = -Wall -Wextra -Werror -pedantic -std=c99 -D_GNU_SOURCE

forge: $(filter-out forge,$(wildcard *)) version.go hookc/*.c hookc/hookc
	go mod vendor
	go build .

hookc/hookc:

version.go:
	printf 'package main\nconst VERSION="%s"\n' $(shell git describe --tags --always --dirty) > $@
	printf 'package main\nconst VERSION = "%s"\n' $(shell git describe --tags --always --dirty) > $@

clean:
	$(RM) forge version.go vendor