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.

Signed-off-by: Gabriel Laskar <gabr...@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)" \
-- 
2.5.0


------------------------------------------------------------------------------
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to