From: Michael Zappe Date: Wed, 1 Jun 2011 18:15:18 +0000 (+0200) Subject: Fix Makefile depend issue X-Git-Tag: fio-1.56~36 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=f84622e9c5f4eba6802bcfc6432493ea8c44d740;p=fio.git Fix Makefile depend issue Signed-off-by: Jens Axboe --- diff --git a/Makefile b/Makefile index ea743547..b609deb3 100644 --- a/Makefile +++ b/Makefile @@ -69,18 +69,18 @@ prefix = /usr/local bindir = $(prefix)/bin mandir = $(prefix)/man -.c.o: +all: .depend $(PROGS) $(SCRIPTS) + +.c.o: .depend $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(CPPFLAGS) $< fio: $(OBJS) $(QUIET_CC)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS) -depend: +.depend: $(SOURCE) $(QUIET_DEP)$(CC) -MM $(CFLAGS) $(CPPFLAGS) $(SOURCE) 1> .depend -$(PROGS): depend - -all: depend $(PROGS) $(SCRIPTS) +$(PROGS): .depend clean: -rm -f .depend $(OBJS) $(PROGS) core.* core