From ee55fbe9e94fda93a49779558627600900b32b6f Mon Sep 17 00:00:00 2001 From: sin Date: Thu, 13 Nov 2014 18:26:38 +0000 Subject: [PATCH] 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. --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 342570e..c85d485 100644 --- 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 $@