stubdom: simplify and fix Makefile
authorJuergen Gross <jgross@suse.com>
Fri, 4 Nov 2016 09:53:29 +0000 (10:53 +0100)
committerWei Liu <wei.liu2@citrix.com>
Sat, 3 Dec 2016 15:55:35 +0000 (15:55 +0000)
commit589899cf4f7d0b29e0264a7613d7cad72c21711e
tree01070b5327444f7bfba7d342bad3ba5f21bc2c87
parent24b0b42c9ab164cba4d66eeb95a33dcbd88626ec
stubdom: simplify and fix Makefile

The stubdom Makefile is setting up links for various libraries. This
is done only once when qemu links are created and each library's links
are updated/created only if the link for the Makefile of the library
isn't already existing. In case a source is added to one library after
doing the first make of stubdom the new source won't be linked by a
new call of make.

Instead of testing the existence of the Makefile link use a make
dependency which will catch changes of the linked Makefile, too.

At the same time don't repeat the same link pattern 7 times but use a
make macro to do the linking.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
[ wei: move "touch $@" to correct location in do_links ]
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
stubdom/Makefile