[hackers] [farbfeld] Remove prerequisite from single-suffix inference rule || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Sun, 2 Apr 2017 20:57:34 +0200 (CEST)

commit cef01ad97b1e215b0879c369e42e31bb3e5188a1
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Sun Apr 2 20:53:55 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Sun Apr 2 20:55:49 2017 +0200

    Remove prerequisite from single-suffix inference rule
    This is against the standard:
       "The application shall ensure that the makefile does not specify
       prerequisites for inference rules;"[0]
    We are still fine though as we explicitly state the dependency on the
    requisite-objects in the $(BIN)-target.
    Thanks Lucas for pointing this out!

diff --git a/Makefile b/Makefile
index 1f7446f..4752fb6 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -17,7 +17,7 @@ $(BIN): $(REQ:=.o)
 $(BIN:=.o): config.mk $(HDR) $(REQ:=.h)
-.o: $(REQ:=.o)
         $(CC) $(LDFLAGS) $($*-LDFLAGS) -o $_AT_ $< $(REQ:=.o)
Received on Sun Apr 02 2017 - 20:57:34 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 02 2017 - 21:00:22 CEST