* [PATCH] mk: allow application to override clean @ 2015-01-23 6:19 stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ [not found] ` <1421993948-24785-1-git-send-email-stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org> [not found] ` <1902752B0C92F943AB7EA9EE13E2DEEC287AE6B39E@HQ1-EXCH02.corp.brocade.com> 0 siblings, 2 replies; 6+ messages in thread From: stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ @ 2015-01-23 6:19 UTC (permalink / raw) To: dev-VfR2kkLFssw; +Cc: Stephen Hemminger From: Stephen Hemminger <shemming-43mecJUBy8ZBDgjK7y7TUQ@public.gmane.org> 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 Single colon and double colon rules for same target causes an error. Signed-off-by: Stephen Hemminger <stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org> --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -325,7 +325,7 @@ # Clean all generated files # .PHONY: clean -clean: _postclean +clean:: _postclean $(Q)rm -f $(_BUILD_TARGETS) $(_INSTALL_TARGETS) $(_CLEAN_TARGETS) .PHONY: doclean --- mk/rte.app.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 40afb2c..9c8b06a 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -325,7 +325,7 @@ $(RTE_OUTPUT)/app/$(APP).map: $(APP) # Clean all generated files # .PHONY: clean -clean: _postclean +clean:: _postclean $(Q)rm -f $(_BUILD_TARGETS) $(_INSTALL_TARGETS) $(_CLEAN_TARGETS) .PHONY: doclean -- 2.1.4 ^ permalink raw reply related [flat|nested] 6+ messages in thread
[parent not found: <1421993948-24785-1-git-send-email-stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org>]
* Re: [PATCH] mk: allow application to override clean [not found] ` <1421993948-24785-1-git-send-email-stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org> @ 2015-01-27 11:58 ` Thomas Monjalon 2015-01-28 11:00 ` Olivier MATZ 1 sibling, 0 replies; 6+ messages in thread From: Thomas Monjalon @ 2015-01-27 11:58 UTC (permalink / raw) To: stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ Cc: dev-VfR2kkLFssw, 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 > > Single colon and double colon rules for same target causes > an error. > > Signed-off-by: Stephen Hemminger <stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org> I think this need could also be solved by having a pkgconfig-like file and not using this rte.app.mk. Acked-by: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> Applied, despite wrong formatting of the patch Thanks -- Thomas ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] mk: allow application to override clean [not found] ` <1421993948-24785-1-git-send-email-stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org> 2015-01-27 11:58 ` Thomas Monjalon @ 2015-01-28 11:00 ` Olivier MATZ [not found] ` <54C8C15B.7020407-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> 1 sibling, 1 reply; 6+ messages in thread From: Olivier MATZ @ 2015-01-28 11:00 UTC (permalink / raw) To: stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ, dev-VfR2kkLFssw Cc: Stephen Hemminger Hi Stephen, On 01/23/2015 07:19 AM, stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org wrote: > From: Stephen Hemminger <shemming-43mecJUBy8ZBDgjK7y7TUQ@public.gmane.org> > > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <54C8C15B.7020407-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] mk: allow application to override clean [not found] ` <54C8C15B.7020407-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> @ 2015-01-29 10:52 ` Thomas Monjalon 2015-01-29 17:07 ` Mcnamara, John 0 siblings, 1 reply; 6+ messages in thread From: Thomas Monjalon @ 2015-01-29 10:52 UTC (permalink / raw) To: stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ Cc: dev-VfR2kkLFssw, Stephen Hemminger Hi Stephen, 2015-01-28 12:00, Olivier MATZ: > Hi Stephen, > > On 01/23/2015 07:19 AM, stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org wrote: > > From: Stephen Hemminger <shemming-43mecJUBy8ZBDgjK7y7TUQ@public.gmane.org> > > > > 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 Does it fit with your needs? Should we revert your patch? Double-colon rules were avoided in DPDK. "Double-colon rules are somewhat obscure and not often very useful" -- Thomas ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] mk: allow application to override clean 2015-01-29 10:52 ` Thomas Monjalon @ 2015-01-29 17:07 ` Mcnamara, John 0 siblings, 0 replies; 6+ messages in thread From: Mcnamara, John @ 2015-01-29 17:07 UTC (permalink / raw) To: dev-VfR2kkLFssw@public.gmane.org > -----Original Message----- > From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Thomas Monjalon > Sent: Thursday, January 29, 2015 10:52 AM > To: stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org > Cc: dev-VfR2kkLFssw@public.gmane.org; Stephen Hemminger > Subject: Re: [dpdk-dev] [PATCH] mk: allow application to override clean > > Should we revert your patch? Double-colon rules were avoided in DPDK. > "Double-colon rules are somewhat obscure and not often very useful" Hi, Also, it looks like DPDK applications that had a 'make clean' target, like dpdk-pktgen, now need to change it to a double colon target to avoid a make error like this: $ cd pktgen-dpdk/ $ make /tmp/dpdk/mk/rte.app.mk:331: *** target file `clean' has both : and :: entries. Stop. This is complaining that the local pktgen 'clean:' rule conflicts with the DPDK 'clean::' rule. John. -- ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <1902752B0C92F943AB7EA9EE13E2DEEC287AE6B39E@HQ1-EXCH02.corp.brocade.com>]
[parent not found: <20150129223641.75306372@uryu.home.lan>]
[parent not found: <20150129223641.75306372-CA4OZQ/Yy2Lykuyl+CZolw@public.gmane.org>]
* Re: [PATCH] mk: allow application to override clean [not found] ` <20150129223641.75306372-CA4OZQ/Yy2Lykuyl+CZolw@public.gmane.org> @ 2015-01-30 10:46 ` Thomas Monjalon 0 siblings, 0 replies; 6+ messages in thread From: Thomas Monjalon @ 2015-01-30 10:46 UTC (permalink / raw) To: Stephen Hemminger; +Cc: dev-VfR2kkLFssw 2015-01-29 22:36, Stephen Hemminger: > On Thu, 29 Jan 2015 02:52:45 -0800 > Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> wrote: > > > Hi Stephen, > > > > 2015-01-28 12:00, Olivier MATZ: > > > Hi Stephen, > > > > > > On 01/23/2015 07:19 AM, stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org wrote: > > > > From: Stephen Hemminger <shemming-43mecJUBy8ZBDgjK7y7TUQ@public.gmane.org> > > > > > > > > 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 > > > > Does it fit with your needs? > > Should we revert your patch? Double-colon rules were avoided in DPDK. > > "Double-colon rules are somewhat obscure and not often very useful" > > > > Works for me. So the commit is now reverted: http://dpdk.org/browse/dpdk/commit/?id=785e1a0932b67136 -- Thomas ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-01-30 10:46 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-01-23 6:19 [PATCH] mk: allow application to override clean stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ [not found] ` <1421993948-24785-1-git-send-email-stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org> 2015-01-27 11:58 ` Thomas Monjalon 2015-01-28 11:00 ` Olivier MATZ [not found] ` <54C8C15B.7020407-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> 2015-01-29 10:52 ` Thomas Monjalon 2015-01-29 17:07 ` Mcnamara, John [not found] ` <1902752B0C92F943AB7EA9EE13E2DEEC287AE6B39E@HQ1-EXCH02.corp.brocade.com> [not found] ` <20150129223641.75306372@uryu.home.lan> [not found] ` <20150129223641.75306372-CA4OZQ/Yy2Lykuyl+CZolw@public.gmane.org> 2015-01-30 10:46 ` Thomas Monjalon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).