about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorsternenseemann <git@lukasepple.de>2020-07-27 02:12:59 +0200
committersternenseemann <git@lukasepple.de>2020-07-27 02:12:59 +0200
commit966c22f0d326a4059e6735b5a3f8913593a30bf8 (patch)
treede56d51930d86729fecb8ab13234a0e2547fe754 /Makefile
parent636460e3d81f3f54d2bf8838939023a6679ed6df (diff)
chore(build): specify prerequisites, to target blog.cgi
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 92bca6f..9b2b736 100644
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,10 @@ CC = gcc
 TEMPLATE = templates/simple.c
 CFLAGS = -Wall --debug --std=c99
 
-blog:
-	$(CC) -o blog main.c $(TEMPLATE) $(CFLAGS)
+default: blog.cgi
+
 clean:
-	rm -f blog
+	rm -f blog.cgi
 
-again: clean blog
+%.cgi: main.c $(TEMPLATE)
+	$(CC) -o $@ $? $(CFLAGS)