Makefile updates

Last was botched.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/Makefile b/Makefile
index a1e339e..1b77b25 100644
--- a/Makefile
+++ b/Makefile
@@ -41,10 +41,6 @@
 bindir = $(prefix)/bin
 mandir = $(prefix)/man
 
-ifneq ($(wildcard .depend),)
-include .depend
-endif
-
 %.o: %.c
 	$(QUIET_CC)$(CC) -o $*.o -c $(CFLAGS) $<
 fio: $(OBJS)
@@ -53,7 +49,9 @@
 depend:
 	$(QUIET_DEP)$(CC) -MM $(ALL_CFLAGS) *.c engines/*.c crc/*.[ch] 1> .depend
 
-all: $(PROGS) $(SCRIPTS) depend
+$(PROGS): depend
+
+all: depend $(PROGS) $(SCRIPTS)
 
 clean:
 	-rm -f *.o .depend cscope.out $(PROGS) engines/*.o crc/*.o core.* core
@@ -67,3 +65,6 @@
 	$(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man1
 	$(INSTALL) -m 644 fio.1 $(DESTDIR)$(mandir)/man1
 
+ifneq ($(wildcard .depend),)
+include .depend
+endif