From 8ddd5f0c0bbc9b7810201fe6d556e11a5338ac9c Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Wed, 22 Mar 2023 20:01:07 -0400 Subject: [PATCH] Makefile: make config.h changes trigger recompile --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e97ce10..c13744e 100644 --- a/Makefile +++ b/Makefile @@ -20,12 +20,14 @@ all: config.h minrss debug: CFLAGS += -g3 debug: config.h minrss -config.h: - cp config.def.h config.h +$(OBJ): config.h .c.o: $(CC) $(CFLAGS) -c $< -o $@ +config.h: + cp config.def.h config.h + minrss: $(OBJ) $(CC) -o $@ $(OBJ) $(LIBS)