sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit ee55fbe9e94fda93a49779558627600900b32b6f
parent 2c7516c7160a0af4f1c6bbbc53e21fdb70810563
Author: sin <sin@2f30.org>
Date:   Thu, 13 Nov 2014 18:26:38 +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.

Diffstat:
MMakefile | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -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 .o: @echo LD $@