aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorVicente Bergas <vicencb@gmail.com>2016-11-04 16:03:17 +0100
committerVicente Bergas <vicencb@gmail.com>2016-11-04 16:32:15 +0100
commit8465139698ebbdfd30dd39f9c80ca75ba1f0a6b1 (patch)
tree5890860fbfa95f847766830ffb7a0ba9d01ac104 /Makefile.in
parentff03891bebd915caf6f918b1d1f57a88c94f49dc (diff)
downloadghdl-8465139698ebbdfd30dd39f9c80ca75ba1f0a6b1.tar.gz
ghdl-8465139698ebbdfd30dd39f9c80ca75ba1f0a6b1.tar.bz2
ghdl-8465139698ebbdfd30dd39f9c80ca75ba1f0a6b1.zip
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 <vicencb@gmail.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in4
1 files changed, 2 insertions, 2 deletions
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