From patchwork Tue Aug 7 09:08:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Worsley X-Patchwork-Id: 1284441 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D5A783FC23 for ; Tue, 7 Aug 2012 09:08:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752789Ab2HGJIc (ORCPT ); Tue, 7 Aug 2012 05:08:32 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:33323 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752652Ab2HGJIb (ORCPT ); Tue, 7 Aug 2012 05:08:31 -0400 Received: by eeil10 with SMTP id l10so1096206eei.19 for ; Tue, 07 Aug 2012 02:08:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=h9iUbNShPLW+Eb9yD/F9r+Eu1qLQxUkfvZF3w95aOqU=; b=pfT/gBkz2pvRmDffC/f5xSMl6urQKrf6BuTDc5BL+hfiZbrg5pmgvjKO7NmxAuhyNm ETKz5tiMfL4vX2F1QtVgKc7AqpUTcAlI6MvqzUFx0dVoFknGY2RXbmkcxgg7QsKGsUQR xtCMno6Ah8aNm0ouQiZJBnF/l0omMKXBYefmFWXLKvn6r4KLtHhXNib1S8NEH138OhGV U9WAvgHTwd4hgoDw5F2bjvhpmRbVsQWGAoBb9qd1wG66j5m59TkHH52bwNxQsWrMWtx6 pJ9UOUd+P0SRWd3vI6Xc0gMXp12Dq2sp8qUwaL56Zz1qsGz4gG1vL3Toqt64fIVm65Vi MKEg== MIME-Version: 1.0 Received: by 10.14.175.130 with SMTP id z2mr16913297eel.0.1344330509991; Tue, 07 Aug 2012 02:08:29 -0700 (PDT) Received: by 10.14.175.72 with HTTP; Tue, 7 Aug 2012 02:08:29 -0700 (PDT) Date: Tue, 7 Aug 2012 19:08:29 +1000 Message-ID: Subject: [Patch] scripts: fix "make install" when a directory or file named install exists From: Andrew Worsley To: Michal Marek Cc: linux-kbuild@vger.kernel.org Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Allow "make install" to work even if a file or directory called install exists Signed-off-by: Andrew Worsley --- 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/ 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 # ---------------------------------------------------------------------------