[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [PATCH 1/2] Clean the upstream build directory explicitly



On Tue, 2016-02-16 at 22:40 -0800, malattia@gmail.com wrote:
> From: Mattia Dongili <malattia@linux.it>
> 
> toos/build/fixdep is otherwise left behind.

This is the wrong place to fix that, though.  Makefile.inc is included
by *every* other Makefile under debian/build.

Ben.

> ---
>  debian/build/Makefile.inc | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/debian/build/Makefile.inc b/debian/build/Makefile.inc
> index 15ff1fd..479b356 100644
> --- a/debian/build/Makefile.inc
> +++ b/debian/build/Makefile.inc
> @@ -14,7 +14,7 @@ CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) -Wall
>  LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
>  
>  all: all-local all-recursive
> -clean: clean-local clean-recursive
> +clean: clean-local clean-recursive clean-build
>  install: install-local install-recursive
>  
>  %-recursive:
> @@ -30,6 +30,9 @@ all-local: $(PROGS)
>  clean-local::
>  	rm -f $(PROGS) *.o
>  
> +clean-build:
> +	$(MAKE) -C $(top_srcdir)/tools/build clean
> +
>  install-local: install-local-progs install-local-scripts install-local-data
>  
>  install-local-progs: $(PROGS)
-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: