Add a C99/POSIX CGI browser for bare Git-format repositories, using got for every read. Pages are HTML 4.01 Transitional with CSS1, table layout, no JavaScript, and a configurable CDE/Motif palette. The browser supports flat and owner-scoped repository layouts, tree, blob, raw, log, and commit views, and has tests plus generated-page validation. Assisted-by: OpenCode:DeepSeek-V4.1-Flash
26 lines
481 B
Makefile
26 lines
481 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
|
|
|
|
all: gotea-cgi
|
|
|
|
gotea-cgi: gotea.c
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ gotea.c $(LDFLAGS)
|
|
|
|
check: gotea-cgi
|
|
./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
|