From fe53e9786fb10fc1ad8fd9bad4ab58d51b4be84f Mon Sep 17 00:00:00 2001 From: Piotr Fusik Date: Tue, 19 Mar 2024 09:33:07 +0100 Subject: [PATCH] Specify the header as a Makefile dependency --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4dc4f9a..3642172 100644 --- a/Makefile +++ b/Makefile @@ -9,12 +9,11 @@ TARGET_CONV ?= qoiconv all: $(TARGET_BENCH) $(TARGET_CONV) bench: $(TARGET_BENCH) - -$(TARGET_BENCH):$(TARGET_BENCH).c +$(TARGET_BENCH):$(TARGET_BENCH).c qoi.h $(CC) $(CFLAGS_BENCH) $(CFLAGS) $(TARGET_BENCH).c -o $(TARGET_BENCH) $(LFLAGS_BENCH) conv: $(TARGET_CONV) -$(TARGET_CONV):$(TARGET_CONV).c +$(TARGET_CONV):$(TARGET_CONV).c qoi.h $(CC) $(CFLAGS_CONV) $(CFLAGS) $(TARGET_CONV).c -o $(TARGET_CONV) .PHONY: clean