From 8465139698ebbdfd30dd39f9c80ca75ba1f0a6b1 Mon Sep 17 00:00:00 2001 From: Vicente Bergas Date: Fri, 4 Nov 2016 16:03:17 +0100 Subject: Fix parallel builds This commit fixes this error: /#################################### $ ./configure Build machine is: x86_64-pc-linux-gnu Creating ghdl.gpr Creating Makefile Generate ortho_code-x86-flags.ads Generate elf_arch.ads Generate default_pathes.ads $ $ $ make -j4 gcc -c -g -DWITH_GNAT_RUN_TIME -o jumps.o src/grt/config/jumps.c gcc -c -g -DWITH_GNAT_RUN_TIME -o times.o src/grt/config/times.c gcc -c -g -DWITH_GNAT_RUN_TIME -o grt-cbinding.o src/grt/grt-cbinding.c gcc -c -g -DWITH_GNAT_RUN_TIME -o grt-cvpi.o src/grt/grt-cvpi.c gcc -c -g -DWITH_GNAT_RUN_TIME -o fstapi.o -I./src/grt/fst src/grt/fst/fstapi.c gcc -c -g -DWITH_GNAT_RUN_TIME -o lz4.o src/grt/fst/lz4.c gcc -c -g -DWITH_GNAT_RUN_TIME -o fastlz.o src/grt/fst/fastlz.c gcc -c -g -o memsegs_c.o src/ortho/mcode/memsegs_c.c gcc -c -g -DWITH_GNAT_RUN_TIME -o chkstk.o src/grt/config/chkstk.S if [ -d ./.git ]; then \ desc=`cd .; git describe --dirty`; \ sed -e "s/[(].*[)]/($desc)/" < src/version.in > version.tmp; \ else \ cp src/version.in version.tmp; \ fi make: *** No rule to make target '/tmp/ghdl/ghdl_mcode', needed by 'std.v87'. Stop. make: *** Waiting for unfinished jobs.... /#################################### It is failing because the dependency includes the full path while the target does not. Signed-off-by: Vicente Bergas --- Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 7d966f974..5c21fb0bb 100644 --- a/Makefile.in +++ b/Makefile.in @@ -329,10 +329,10 @@ install.vpi: all.vpi install.dirs LIBSRC_DIR:=$(srcdir)/libraries LIBDST_DIR:=$(libdirsuffix) -GHDL=$(PWD)/ghdl_$(backend)$(EXEEXT) +ANALYZE_DEP:=ghdl_$(backend)$(EXEEXT) +GHDL=$(PWD)/$(ANALYZE_DEP) ANALYZE_OPTS:= ANALYZE:=$(GHDL) -a $(ANALYZE_OPTS) $(LIB_CFLAGS) -ANALYZE_DEP:=$(GHDL) # TODO?: don't include, make it separate include $(srcdir)/libraries/Makefile.inc -- cgit v1.2.3