From 3d87972edfdb1b3f78fa22982519ac02818df7ae Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 31 Mar 2025 12:33:35 +0800 Subject: Serve tarball of source rather than using individual source files --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3783d4f..4344a99 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,12 @@ # SPDX-License-Identifier: AGPL-3.0-only # SPDX-FileContributor: Runxi Yu -.PHONY: clean version.go man +.PHONY: clean version.go man source.tar.gz CFLAGS = -Wall -Wextra -Werror -pedantic -std=c99 -D_GNU_SOURCE MAN_PAGES = forge.5 hookc.1 -forge: version.go hookc/*.c hookc/hookc man # TODO - go mod vendor +forge: source.tar.gz version.go hookc/*.c hookc/hookc man # TODO go build . man: $(MAN_PAGES:%=man/%.html) $(MAN_PAGES:%=man/%.txt) @@ -28,3 +27,7 @@ version.go: clean: $(RM) forge version.go vendor +source.tar.gz: + rm -f source.tar.gz + go mod vendor + git ls-files -z | xargs -0 tar -czf source.tar.gz vendor -- cgit v1.2.3