Mark explicit dependency on requisites for BIN - farbfeld - suckless image format with conversion tools
HTML git clone git://git.suckless.org/farbfeld
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit d0ce307972fbc95073666e92043fc7012ffbefdf
DIR parent 0aaa36464a4ad965a3d747cc6df16137c7b5d6c5
HTML Author: Laslo Hunhold <dev@frign.de>
Date: Thu, 30 Mar 2017 09:29:06 +0200
Mark explicit dependency on requisites for BIN
Diffstat:
M Makefile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
DIR diff --git 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)