Add config.h dependency to quark-rule - quark - quark web server
git clone git://git.suckless.org/quark
Log
Files
Refs
LICENSE
---
commit 1a93e3b22f363a0a8dffcf3c47b8d30ff207401f
parent b98cdd453f1c997f241f293f4de8823d54c0d693
Author: Laslo Hunhold 
Date:   Mon, 14 Sep 2020 19:50:11 +0200

Add config.h dependency to quark-rule

Due to the refactoring of the header-dependencies it would happen that
a compilation unit would pull in config.h before it was created, in case
it didn't exist already.

Signed-off-by: Laslo Hunhold 

Diffstat:
  M Makefile                            |       2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/Makefile b/Makefile
@@ -14,7 +14,7 @@ main.o: main.c arg.h data.h http.h sock.h util.h config.mk
 sock.o: sock.c sock.h util.h config.mk
 util.o: util.c util.h config.mk
 
-quark: $(COMPONENTS:=.o) $(COMPONENTS:=.h) main.o config.mk
+quark: config.h $(COMPONENTS:=.o) $(COMPONENTS:=.h) main.o config.mk
         $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $(COMPONENTS:=.o) main.o $(LDFLAGS)
 
 config.h: