aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index b74ab1b..98a2f14 100644
--- a/Makefile
+++ b/Makefile
@@ -10,15 +10,14 @@
.PHONY: clean
CFLAGS = -Wall -Wextra -pedantic -std=c99 -D_GNU_SOURCE
-MAN_PAGES = lindenii-forge.5 lindenii-forge-hookc.1 lindenii-forge.1 lindenii-forge-mail.5
VERSION = $(shell git describe --tags --always --dirty)
SOURCE_FILES = $(shell git ls-files)
EMBED = git2d/git2d hookc/hookc source.tar.gz $(wildcard LICENSE*) $(wildcard static/*) $(wildcard templates/*)
-EMBED_ = $(EMBED:%=internal/embed/%)
+EMBED_ = $(EMBED:%=forged/internal/embed/%)
forge: $(EMBED_) $(SOURCE_FILES)
- CGO_ENABLED=0 go build -o forge -ldflags '-extldflags "-f no-PIC -static" -X "go.lindenii.runxiyu.org/forge.version=$(VERSION)"' -tags 'osusergo netgo static_build' ./cmd/forge
+ CGO_ENABLED=0 go build -o forge -ldflags '-extldflags "-f no-PIC -static" -X "go.lindenii.runxiyu.org/forge.version=$(VERSION)"' -tags 'osusergo netgo static_build' ./forged/cmd/forge
utils/colb:
@@ -34,6 +33,6 @@ source.tar.gz: $(SOURCE_FILES)
rm -f source.tar.gz
git ls-files -z | xargs -0 tar -czf source.tar.gz
-internal/embed/%: %
+forged/internal/embed/%: %
@mkdir -p $(shell dirname $@)
@cp $^ $@