[PATCH] Fix make -j builds

Gabriel Laskar gabriel at lse.epita.fr
Thu Oct 1 12:49:25 UTC 2015

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

Signed-off-by: Gabriel Laskar <gabriel at lse.epita.fr>
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 241703f..1d8b135 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)" \

More information about the Strace-devel mailing list