Fix support for parallel building with make (-j).
authorWalter Doekes <walter+asterisk@wjd.nu>
Tue, 17 Jan 2012 19:45:19 +0000 (19:45 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Tue, 17 Jan 2012 19:45:19 +0000 (19:45 +0000)
commita9698d02418ad6c8043170985cf70a8ce20cbad6
tree34b5b01225a70683436f8af40f29e46949e99183
parentf5dd17e558db4572c08bb7d14bb990a40c8446ff
Fix support for parallel building with make (-j).

Previously make -j <N> would cause a race between doing cleanup of
certain files (defaults.h, menuselect, ...) and creating them anew.
Add a new target that depends on cleanup only and has a submake doing
the rest as command string. This way the cleanup goes first.

(closes issue ASTERISK-18751)
Tested by: Jeremy Kister
Reviewed by: Paul Belanger
Review: https://reviewboard.asterisk.org/r/1660

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@351360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Makefile