Makefile: don't run configure for make clean
authorJens Axboe <axboe@kernel.dk>
Wed, 29 May 2013 19:49:21 +0000 (21:49 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 29 May 2013 19:49:21 +0000 (21:49 +0200)
Normally we auto-run the configure part, if config-host.mak
doesn't exist. But we don't need to do that for make clean.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Makefile

index 57f3f82ea35fe1430ce9706c546dc506723713d6..3de97354b8be2b3eb7c221ea573630003134b6a6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,8 +6,10 @@ config-host-mak: configure
        @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
 else
 config-host.mak:
+ifneq ($(MAKECMDGOALS),clean)
        @echo "Running configure for you..."
        @./configure
+endif
 all:
 include config-host.mak
 endif