• Petr Písař's avatar
    Declare make dependencies for Perl binding · fa07053f
    Petr Písař authored
    Running make in parallel (make -j5) randomly failed with:
    
    /bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -include ./config.h -DSYSCONFDIR=\""/etc"\" -I./src  -Wall -Wchar-subscripts -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wtype-limits  -fno-semantic-interposition -ffunction-sections -fdata-sections -DLIBLOC_PRIVATE -fvisibility=hidden -g -O2 -c -o src/libloc_internal_la-database.lo `test -f 'src/database.c' || echo './'`src/database.c
    /usr/bin/ld: cannot find -lloc: No such file or directory
    collect2: error: ld returned 1 exit status
    make[3]: *** [Makefile:482: blib/arch/auto/Location/Location.so] Error 1
    make[2]: *** [Makefile:2982: build-perl] Error 2
    
    That's because build-perl did not depend on libloc library.
    
    A similar issue was with running tests and installing files. Moreover,
    thess two targets rebuilt Perl binding from scratch.
    
    This patch make the dependencies explicit and turns build-perl into
    non-PHONY.
    
    Fixes: #12961
    Signed-off-by: default avatarPetr Písař <ppisar@redhat.com>
    Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
    fa07053f
Makefile.am 12.4 KB