aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-08-10 10:04:30 +0800
committerRunxi Yu <me@runxiyu.org>2025-08-10 10:06:13 +0800
commit390faa0cf752c363d1ac82e9fb7ca58ef8df3c2e (patch)
tree5185987edd828fd3644016bdc7a5260aa2ff891e /Makefile
parentBump dependencies (diff)
downloadforge-390faa0cf752c363d1ac82e9fb7ca58ef8df3c2e.tar.gz
forge-390faa0cf752c363d1ac82e9fb7ca58ef8df3c2e.tar.zst
forge-390faa0cf752c363d1ac82e9fb7ca58ef8df3c2e.zip
Makefile: Remove source tarball generation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 65d6b07..b606a12 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ CFLAGS = -Wall -Wextra -pedantic -std=c99 -D_GNU_SOURCE
VERSION = $(shell git describe --tags --always --dirty)
SOURCE_FILES = $(shell git ls-files)
-EMBED = git2d/git2d hookc/hookc source.tar.gz $(wildcard LICENSE*) $(wildcard forged/static/*) $(wildcard forged/templates/*)
+EMBED = git2d/git2d hookc/hookc $(wildcard LICENSE*) $(wildcard forged/static/*) $(wildcard forged/templates/*)
EMBED_ = $(EMBED:%=forged/internal/embed/%)
forge: $(EMBED_) $(SOURCE_FILES)
@@ -27,11 +27,7 @@ git2d/git2d: $(wildcard git2d/*.c)
$(CC) $(CFLAGS) -o git2d/git2d $^ $(shell pkg-config --cflags --libs libgit2) -lpthread
clean:
- rm -rf forge utils/colb hookc/hookc git2d/git2d source.tar.gz */*.o
-
-source.tar.gz: $(SOURCE_FILES)
- rm -f source.tar.gz
- git ls-files -z | xargs -0 tar -czf source.tar.gz
+ rm -rf forge utils/colb hookc/hookc git2d/git2d */*.o
forged/internal/embed/%: %
@mkdir -p $(shell dirname $@)