Files
tasksd/Makefile
T
Hermes Agent 0a084532bc tasksd-http: Web-Oberflaeche als CGI; task_update; TASKDIR
tasksd-http ist ein C99-CGI-Programm (HTML 4.01) ueber den MCP-Server von
tasksd (vendor/cgi/cgi.h, tests/test-http.sh, Makefile, README).

Neues Werkzeug task_update: korrigiert die beschreibenden Felder einer Task
(title, goal, scope, tags, priority); Zustandswechsel bleiben bei
task_next/done/pause/drop.  Die Umgebungsvariable TASKDIR bleibt als alter
Name gueltig.  tests/run.py angepasst.
2026-11-19 09:55:33 +00:00

29 lines
679 B
Makefile

CC ?= cc
CFLAGS ?= -std=c99 -O2 -Wall -Wextra -Werror
LIBDIR ?= vendor/libmcp
PREFIX ?= /usr/local
CGIDIR ?= $(PREFIX)/lib/cgi-bin
all: tasksd tasksd-http
tasksd: tasksd.c $(LIBDIR)/mcp.h
$(CC) $(CFLAGS) -I$(LIBDIR) -o $@ tasksd.c
tasksd-http: tasksd-http.c vendor/cgi/cgi.h $(LIBDIR)/mcp.h
$(CC) $(CFLAGS) -I$(LIBDIR) -Ivendor/cgi -o $@ tasksd-http.c
test: tasksd tasksd-http
./tests/run.sh
./tests/test-http.sh
install: tasksd tasksd-http
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp tasksd $(DESTDIR)$(PREFIX)/bin/
install -d $(DESTDIR)$(CGIDIR)
install -m 0755 tasksd-http $(DESTDIR)$(CGIDIR)/tasksd-http
clean:
rm -f tasksd tasksd-http
.PHONY: all test install clean