about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2020-08-08 13:01:21 +0200
committersternenseemann <sternenseemann@systemli.org>2020-08-08 13:01:21 +0200
commit36285a3d51322b33d83462233d4fcac08f89bfbb (patch)
tree0acaa899c1e5b10fba33b1a3d50c09a8b3595c22 /Makefile
parente5cd70a596f797ddff973861a5b72d2af1dec1b9 (diff)
fix(Makefile): main.c is a requisite for main.o
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ce9daa6..50ee090 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,8 @@ ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
 sternenblog.cgi: xml.o entry.o index.o cgiutil.o $(TEMPLATE).o main.o
 	$(CC) $(CFLAGS) -o $@ $^
 
-main.o: core.h config.h
-	$(CC) $(CFLAGS) -c -o main.o main.c
+main.o: main.c core.h config.h
+	$(CC) $(CFLAGS) -c -o main.o $<
 
 $(TEMPLATE).o: $(TEMPLATE).c core.h config.h xml.h cgiutil.h
 	$(CC) $(CFLAGS) -I$(ROOT_DIR) -c -o $@ $<