From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH] mk: allow application to override clean Date: Wed, 28 Jan 2015 12:00:43 +0100 Message-ID: <54C8C15B.7020407@6wind.com> References: <1421993948-24785-1-git-send-email-stephen@networkplumber.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: Stephen Hemminger To: stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org, dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1421993948-24785-1-git-send-email-stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Stephen, On 01/23/2015 07:19 AM, stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org wrote: > From: Stephen Hemminger > > In some cases application may want to have additional rules > for clean. This can be handled by allowing the double colon > form of rule. > > https://www.gnu.org/software/make/manual/html_node/Double_002dColon.html There is already a way to do that in dpdk makefiles: you can add the following code in your application Makefile, before the line that includes $(RTE_SDK)/mk/rte.app.mk: POSTCLEAN += my_clean .PHONY: my_clean my_clean: @echo executed after clean Regards, Olivier