Re: deb-pkg: Cleaning of debian/*tmp files when running 'make (dist)clean'

From: Sedat Dilek
Date: Mon Jan 05 2015 - 13:37:54 EST


On Wed, Dec 31, 2014 at 2:53 PM, Michal Marek <mmarek@xxxxxxx> wrote:
> On 2014-12-26 19:46, Ben Hutchings wrote:
>> On Fri, 2014-12-26 at 13:43 +0100, Sedat Dilek wrote:
>>> On Fri, Dec 26, 2014 at 1:02 PM, Sedat Dilek <sedat.dilek@xxxxxxxxx> wrote:
>>> [...]
>>>>
>>>> Any other make (PHONY) target I don't know?
>>>>
>>>
>>> I fell over "clean-dirs"...
>>>
>>> scripts/package/Makefile:93:clean-dirs += $(objtree)/debian/
>>>
>>> ...but did not really understood how it works.
>>> The main Makefile defines some clean-dirs PHONY#s.
>>> I can only speculate, someone with more skillz in Makefile handling
>>> should look at this.
>>
>> It looks like this has not worked for a long time. The scripts
>> directory is not included in the main recursive processes; it seems to
>> be special-cased for build and not for clean.
>
> It actually is special-cased for mrproper, which is a subset if
> distclean. The real problem is that
>
> clean-dirs += $(objtree)/debian/
>
> expands to
>
> clean-dirs += ./debian/
>
> and scripts/Makefile.clean things that this is relative to the
> scripts/package directory.
>
> Michal

For the sake of completeness... Issue fixed by...

commit a16c5f99a28c9945165c46da27fff8e6f26f8736
"kbuild: Fix removal of the debian/ directory"

- Sedat -

[1] http://git.kernel.org/cgit/linux/kernel/git/mmarek/kbuild.git/commit/?h=rc-fixes&id=a16c5f99a28c9945165c46da27fff8e6f26f8736
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/