Introduction
Introduction Statistics Contact Development Disclaimer Help
Remove prerequisite from single-suffix inference rule - farbfeld - suckless ima…
git clone git://git.suckless.org/farbfeld
Log
Files
Refs
README
LICENSE
---
commit cef01ad97b1e215b0879c369e42e31bb3e5188a1
parent d25f3c73afa5beb83121c9b033bc0146c755ca3a
Author: Laslo Hunhold <[email protected]>
Date: Sun, 2 Apr 2017 20:53:55 +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!
[0]:http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html
Diffstat:
M Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/Makefile b/Makefile
@@ -17,7 +17,7 @@ $(BIN): $(REQ:=.o)
$(BIN:=.o): config.mk $(HDR) $(REQ:=.h)
-.o: $(REQ:=.o)
+.o:
$(CC) $(LDFLAGS) $($*-LDFLAGS) -o $@ $< $(REQ:=.o)
clean:
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.