kbuild: Fix removal of the debian/ directory
authorMichal Marek <mmarek@suse.cz>
Wed, 31 Dec 2014 15:29:35 +0000 (16:29 +0100)
committerMichal Marek <mmarek@suse.cz>
Fri, 2 Jan 2015 13:51:27 +0000 (14:51 +0100)
commita16c5f99a28c9945165c46da27fff8e6f26f8736
treea5d8fd1a65ba56c1492e39bb4a8548a9fa38df7d
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
kbuild: Fix removal of the debian/ directory

scripts/Makefile.clean treats absolute path specially, but
$(objtree)/debian is no longer an absolute path since 7e1c0477 (kbuild:
Use relative path for $(objtree). Work around this by checking if the
path starts with $(objtree)/.

Reported-and-tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Fixes: 7e1c0477 (kbuild: Use relative path for $(objtree)
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/Makefile.clean