From d0ce307972fbc95073666e92043fc7012ffbefdf Mon Sep 17 00:00:00 2001 From: Laslo Hunhold Date: Thu, 30 Mar 2017 09:29:06 +0200 Subject: Mark explicit dependency on requisites for BIN --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e1e954d..1f7446f 100644 --- a/Makefile +++ b/Makefile @@ -13,11 +13,13 @@ MAN5 = farbfeld.5 all: $(BIN) -.o: $(REQ:=.o) - $(CC) $(LDFLAGS) $($*-LDFLAGS) -o $@ $< $(REQ:=.o) +$(BIN): $(REQ:=.o) $(BIN:=.o): config.mk $(HDR) $(REQ:=.h) +.o: $(REQ:=.o) + $(CC) $(LDFLAGS) $($*-LDFLAGS) -o $@ $< $(REQ:=.o) + clean: rm -f $(BIN) $(BIN:=.o) $(REQ:=.o) -- cgit v1.2.3