Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965909AbcCOUsk (ORCPT ); Tue, 15 Mar 2016 16:48:40 -0400 Received: from mail-ob0-f178.google.com ([209.85.214.178]:33190 "EHLO mail-ob0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965883AbcCOUse (ORCPT ); Tue, 15 Mar 2016 16:48:34 -0400 MIME-Version: 1.0 In-Reply-To: <56E87463.9020300@suse.com> References: <1457828035-30584-1-git-send-email-yamada.masahiro@socionext.com> <56E87463.9020300@suse.com> From: Andy Lutomirski Date: Tue, 15 Mar 2016 13:48:13 -0700 Message-ID: Subject: Re: [PATCH] kbuild: drop FORCE from PHONY targets To: Michal Marek Cc: Masahiro Yamada , Fenghua Yu , Thomas Gleixner , Russell King , Ingo Molnar , X86 ML , "linux-arm-kernel@lists.infradead.org" , Tony Luck , Nathan Lynch , "linux-kbuild@vger.kernel.org" , "linux-ia64@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "H. Peter Anvin" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 791 Lines: 22 On Tue, Mar 15, 2016 at 1:45 PM, Michal Marek wrote: > Dne 15.3.2016 v 19:27 Andy Lutomirski napsal(a): >> Fair enough, although I'm curious why this happens. It might be worth >> changing the docs to say that .PHONY is *not* an substitute for FORCE >> in that context, then. > > These two are unrelated, except that FORCE is redundant for a .PHONY > target. FORCE is our idiom to tell make to always remake the target and > let us handle the dependencies manually. Listing a target as .PHONY > tells make that the target will not produce a file of the same name > (typically, "all", "install", etc). > Except that apparently if-changed doesn't work on .PHONY targets that don't specify FORCE, which confuses me. --Andy -- Andy Lutomirski AMA Capital Management, LLC