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 <gabriel@lse.epita.fr>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
This commit is contained in:
Gabriel Laskar 2015-10-01 14:49:25 +02:00 committed by Dmitry V. Levin
parent 0656ce9822
commit ad25c74f4b

View File

@ -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)" \