On 28 February 2017 at 16:05, Eric Engestrom <eric.engest...@imgtec.com> wrote:
>> > The quick and dirty fix is to add a rule forcing the serialisation, like >> > this: >> > util/vk_enum_to_str.c: util/vk_enum_to_str.h >> > This fixes the race condition, but still writes both files twice for no >> > reason. >> > >> Are you sure that will generate them twice - can you elaborate a bit ? > > You can try it yourself with this makefile: > ----8<---- > all: foo bar > foo bar: > echo $@ > ---->8---- > > $ make > echo foo > foo > echo bar > bar > > It runs both targets, regardless of the fact they have the same rule. > I was wondering about the "foo.c: bar.h" case, like below. ----8<---- all: foo.c bar.h bar.h: @echo $@ foo.c: bar.h ---->8---- $make -f foo bar.h It does it once on my end. Perhaps I'm missing something ? -Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev