From b56467df1951ed5f43f1b8fc989ef271bdd80ada Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 17 Aug 2025 14:16:38 +0800 Subject: [PATCH] More build system updates --- Makefile | 4 +--- git2d/.gitignore | 1 - hookc/.gitignore | 1 - diff --git a/Makefile b/Makefile index 4a049fa560f8a8fa7e74fefdda5cbe13a61befd0..e11166059b16532d4d325e93c193ea8da41beeb3 100644 --- a/Makefile +++ b/Makefile @@ -11,11 +11,9 @@ .PHONY: clean all CFLAGS = -Wall -Wextra -pedantic -std=c99 -D_GNU_SOURCE -SOURCE_FILES = $(shell git ls-files) - all: dist/forged dist/git2d dist/hookc -dist/forged: $(SOURCE_FILES) +dist/forged: $(shell git ls-files forged) mkdir -p dist CGO_ENABLED=0 go build -o dist/forged -ldflags '-extldflags "-f no-PIC -static"' -tags 'osusergo netgo static_build' ./forged diff --git a/git2d/.gitignore b/git2d/.gitignore deleted file mode 100644 index 635d84dbc02b05bc5e7f7a54f42cfc4f7cec5232..0000000000000000000000000000000000000000 --- a/git2d/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/git2d diff --git a/hookc/.gitignore b/hookc/.gitignore deleted file mode 100644 index 7348daa8e39e97eed3c06556f29500fc6861712b..0000000000000000000000000000000000000000 --- a/hookc/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/hookc -- 2.48.1