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

Re: pbuilder and scons

Paul Wise wrote:
> As other people noted new and in old threads, this is because pbuilder
> runs debian/rules clean outside the chroot. To work around it, put a '-'
> in front of the scons -c line in debian/rules, so that make ignores any
> errors from that line. An example from one of my packages:
> clean: unpatch
>         dh_testdir
>         dh_testroot
>         -scons VERSION=$(VERSION) SKIPPLUGINS=System -c
>         -rm -rf .sconf_temp .sconsign.dblite SCons/Tools/crossmingw.pyc build config.log .test
>         dh_clean

That is awesome.  I have read many docs about make, but never knew that
the '-' at the beginning of the line caused make to ignore errors from
that command.  Maybe I have just overlooked it all this time.


Roberto C. Sanchez

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: