From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH] Add error message when trying to use make option T= during build/clean Date: Tue, 13 Oct 2015 15:22:44 +0200 Message-ID: <561D05A4.2060708@6wind.com> References: <1443542682-7088-1-git-send-email-francesco.montorsi@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: Francesco Montorsi , dev@dpdk.org Return-path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id B230D5A53 for ; Tue, 13 Oct 2015 15:22:50 +0200 (CEST) In-Reply-To: <1443542682-7088-1-git-send-email-francesco.montorsi@gmail.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Francesco, On 09/29/2015 06:04 PM, Francesco Montorsi wrote: > From: Francesco Montorsi > > --- > mk/rte.sdkbuild.mk | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/mk/rte.sdkbuild.mk b/mk/rte.sdkbuild.mk > index 38ec7bd..013aa89 100644 > --- a/mk/rte.sdkbuild.mk > +++ b/mk/rte.sdkbuild.mk > @@ -29,6 +29,12 @@ > # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > > +ifdef T > + ifeq ("$(origin T)", "command line") > + $(error "Cannot use T= with a build/clean target") > + endif > +endif > + > # If DESTDIR variable is given, install binary dpdk I tested this patch but it breaks the "make install" command: $ make install T=x86_64-native-linuxapp-gcc make[5]: Nothing to be done for 'depdirs'. Configuration done rte.sdkbuild.mk:34: *** "Cannot use T= with a build/clean target". As the T= argument is given as a command line variable, it is propagated to the "$(MAKE) all" in rte.sdkinstall.mk. So I think it's better to keep the current code as is, except if you have a better idea. Regards, Olivier