[Patch] scripts: fix "make install" when a directory or file named install exists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Allow "make install" to work even if a file or directory called install exists
Signed-off-by: Andrew Worsley <amworsley@xxxxxxxxx>
---
This is based on mainline  v3.5 version. It's almost trivial except I
spent about an hour trying to install the kernel output into a
directory install/<architecture> as per other packages I build before
I realised the obvious problem! So I thought it
was worth submitting to avoid other people hitting this problem: The
target install is not marked as PHONY anywhere.

diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index ff1720d..cf4b970 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -434,6 +434,7 @@ $(multi-used-m) : %.o: $(multi-objs-m) FORCE

 targets += $(multi-used-y) $(multi-used-m)

+PHONY += install

 # Descending
 # ---------------------------------------------------------------------------
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux