[hackers] [sbase] Just make $(HDR) a prereq for $(OBJ) || sin

From: <git_AT_suckless.org>
Date: Thu, 13 Nov 2014 19:28:22 +0100

commit ee55fbe9e94fda93a49779558627600900b32b6f
Author: sin <sin_AT_2f30.org>
Date: Thu Nov 13 18:26:38 2014 +0000

    Just make $(HDR) a prereq for $(OBJ)
    The result is always correct but it might do redundant builds.
    Not really an issue as sbase builds very fast. The alternative is
    to track the header deps manually but this is already incomplete and
    unlikely to be kept up to date.

diff --git a/Makefile b/Makefile
index 342570e..c85d485 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -128,9 +128,7 @@ binlib: util.a
 bin: $(BIN)
-$(OBJ): util.h config.mk
-cat.o fold.o grep.o nl.o sort.o tail.o uniq.o: text.h
-cp.o mv.o rm.o: fs.h
+$(OBJ): $(HDR) config.mk
         _AT_echo LD $@
Received on Thu Nov 13 2014 - 19:28:22 CET

This archive was generated by hypermail 2.3.0 : Thu Nov 13 2014 - 19:36:10 CET