From: Gabriel Laskar Date: Thu, 1 Oct 2015 12:49:25 +0000 (+0200) Subject: Fix make -j builds X-Git-Tag: v4.11~160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad25c74f4b88b38a21b3125fb3e2281253c76977;p=strace Fix make -j builds In files generated by mpers scripts, includes directives are taken from original files where the type definition was done. This causes to include defs.h in multiple files. defs.h includes printers.h header, which is a generated header. This patch add an explicit dependency to printers.h for the mpers scripts. * Makefile.am (mpers-m%.stamp): Add printers.h to order-only prerequisites. Signed-off-by: Gabriel Laskar Signed-off-by: Dmitry V. Levin --- diff --git a/Makefile.am b/Makefile.am index 241703f1..1d8b1356 100644 --- a/Makefile.am +++ b/Makefile.am @@ -679,7 +679,7 @@ libmpers_CPPFLAGS = $(AM_CPPFLAGS) -DIN_MPERS # mpers targets -mpers-m%.stamp: $(srcdir_mpers_source_files) +mpers-m%.stamp: $(srcdir_mpers_source_files) | printers.h for f in $^; do \ CC="$(CC)" CFLAGS="$(mpers_sh_opts)" \ CPP="$(CPP)" CPPFLAGS="$(mpers_CPPFLAGS) $(mpers_INCLUDES) -DIN_MPERS -DMPERS_IS_$(mpers_NAME)" \