aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 >$@