build: libebook: Fix race condition in gen-western-table.py
authorColin Walters <walters@verbum.org>
Tue, 26 Jun 2012 21:15:01 +0000 (17:15 -0400)
committerColin Walters <walters@verbum.org>
Tue, 26 Jun 2012 21:15:03 +0000 (17:15 -0400)
commit63f92dcaab740ff0102ce778f4e8cbe21a268ebb
treea24474121c30a67b2bceed86edf3c2cb7d735048
parentd9fc3f8db8f1d3f406dda07409b8a91816d4ac48
build: libebook: Fix race condition in gen-western-table.py

In a parallel build, the normal compiler process will race with the
process writing to the table header.  Depending on timing, it may or
may not work.

Fix this in two ways:

* Write the file atomically, so #include either gets the whole thing,
  or nothing.
* Add it to BUILT_SOURCES so automake knows to build it first.
addressbook/libebook/Makefile.am