From 38f8e2242353711d5c87c58f3831306934d2e6b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 17 Sep 2021 11:20:43 +0200 Subject: Compartmentalize --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4bf3230..512b613 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,11 @@ .SUFFIXES: .c .t .tc LDFLAGS += -lsqlite3 -cforum: cforum.c front.c front.tc - $(CC) $(CFLAGS) $(LDFLAGS) -o cforum cforum.c +C = cforum.c err.c front.c query.c +TPL = t/err.tc t/foot.tc t/front.tc t/head.tc + +cforum: $(C) $(TPL) + $(CC) $(CFLAGS) $(LDFLAGS) -o cforum $(C) .t.tc: maketpl <$< ./maketpl >$@ -- cgit v1.2.3