aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-17 11:20:43 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-17 11:20:43 +0200
commit38f8e2242353711d5c87c58f3831306934d2e6b7 (patch)
tree92ec8e297731fb1de90b0e465bb52207bbe5c037 /Makefile
parent4b0e767fd645687e8d2a5ded778c57b8cf42bc4a (diff)
downloadcforum-38f8e2242353711d5c87c58f3831306934d2e6b7.tar.gz
Compartmentalize
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
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 >$@