Files
gotea/cgi/Makefile
T
lotherk 802572bae9 feat(pages): build and publish bb sites on push
Add a Gotea Pages prototype: a pages branch is checked out with got, built with the vendored bb, swapped atomically into a pages root, and served only on a separate host from an allowlist. A post-receive hook installer wires the flow through Gitea delegate hooks. The CGI pages mode isolates the host and contains paths with realpath.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
2026-11-22 12:28:02 +00:00

30 lines
552 B
Makefile

CC ?= cc
CFLAGS ?= -O2
CFLAGS += -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wextra -Wpedantic -Werror
CPPFLAGS ?=
LDFLAGS ?=
PREFIX ?= /usr/local
LIBEXECDIR ?= $(PREFIX)/libexec
BB := ../third_party/bb/bb
all: gotea-cgi
gotea-cgi: gotea.c
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ gotea.c $(LDFLAGS)
$(BB):
$(MAKE) -C ../third_party/bb
check: gotea-cgi $(BB)
./tests/run.sh
install: gotea-cgi
install -d "$(DESTDIR)$(LIBEXECDIR)"
install -m 0755 gotea-cgi "$(DESTDIR)$(LIBEXECDIR)/gotea-cgi"
clean:
rm -f gotea-cgi
.PHONY: all check install clean