[PATCH] Improve dependency checking on builds
authorJens Axboe <jens.axboe@oracle.com>
Wed, 7 Feb 2007 13:03:07 +0000 (14:03 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 7 Feb 2007 13:03:07 +0000 (14:03 +0100)
From the similar fix for blktrace, from Vasily Tarasov <vtaras@openvz.org>.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Makefile

index 7500030be3772479186665e2f8d9354aa61e63cf..411dda06e41f05ede7416c36bbe34d9ad27e1699 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ prefix = /usr/local
 bindir = $(prefix)/bin
 libdir = $(prefix)/lib/fio
 
-all: depend $(PROGS) $(SCRIPTS)
+all: $(PROGS) $(SCRIPTS)
 
 fio: $(OBJS)
        $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -lm -ldl -laio -lrt
@@ -37,6 +37,8 @@ depend:
 cscope:
        @cscope -b
 
+$(PROGS): | depend
+
 install: $(PROGS) $(SCRIPTS)
        $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
        $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)