From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753527AbbCJWpH (ORCPT ); Tue, 10 Mar 2015 18:45:07 -0400 Received: from mail-la0-f54.google.com ([209.85.215.54]:46617 "EHLO mail-la0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752691AbbCJWpE (ORCPT ); Tue, 10 Mar 2015 18:45:04 -0400 Date: Wed, 11 Mar 2015 01:45:00 +0300 From: Cyrill Gorcunov To: Shuah Khan Cc: akpm@linux-foundation.org, tranmanphong@gmail.com, mpe@ellerman.id.au, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH 3/3] selftests: kcmp build fails when invoked from kselftest target Message-ID: <20150310224500.GO30296@moon> References: <80f321919d8d1f804c4933acac9b044d4c6626eb.1426022048.git.shuahkh@osg.samsung.com> <20150310220954.GL30296@moon> <54FF7323.2080603@osg.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54FF7323.2080603@osg.samsung.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 10, 2015 at 04:41:39PM -0600, Shuah Khan wrote: > > Are you looking for something like this: > > all: kcmp_test > > kcmp_test: > $(CC) $(CFLAGS) kcmp_test.c -o kcmp_test > > I just simplified it and removed the prerequsite. > If you prefer, I can make the change to keep the > prereq. Yes please, and you may use internal make var $@ as well kcmp_test: $(CC) $(CFLAGS) kcmp_test.c -o $@