commit dd589fa72ace15295af2eb6a0426d2c49de3b524
parent dbc5c018d5773da8514ff933815c9612d20b2677
Author: Quentin Rameau <quinq@fifth.space>
Date: Wed, 26 Jul 2017 17:46:24 +0200
Push make dependencies on objects instead of binary
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -12,9 +12,11 @@ all: $(BIN)
config.h:
cp config.def.h config.h
-$(BIN): config.h config.mk common.h $(OBJ)
+$(BIN): $(OBJ)
$(CC) $(OBJ) $(SACCLDFLAGS) -o $@
+$(OBJ): config.h config.mk common.h
+
clean:
rm -f $(BIN) $(OBJ)