From 193528ca0d3678fa90cdb2878f361cfcbf23c940 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Thu, 17 Mar 2022 10:38:51 +0100 Subject: Makefile: fix order of test target dependencies The install.*.local targets need to be run before the backend-specific test target, but this is not guaranteed by making them all dependencies of the global test target. Making the install targets dependencies of the backend-specific test target instead guarantees they are executed before the testsuite is run. --- Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 9f40d1482..a337ca013 100644 --- a/Makefile.in +++ b/Makefile.in @@ -470,7 +470,7 @@ install.libghdl.include: install.dirs $(srcdir)/src/synth/include/synth_gates.h $(INSTALL_DATA) -p $(srcdir)/src/synth/include/synth.h $(DESTDIR)$(incdir)/ $(INSTALL_DATA) -p $(srcdir)/src/synth/include/synth_gates.h $(DESTDIR)$(incdir)/ -test: install.libghdl.local +test.$(backend): install.libghdl.local install.libghdl.local: all.libghdl $(MKDIR) -p $(incdirsuffix)/ghdl/ $(INSTALL_DATA) -p $(srcdir)/src/synth/include/synth.h $(incdirsuffix)/ghdl/ @@ -570,7 +570,7 @@ uninstall.vpi: $(RM) -f $(DESTDIR)$(incdir)/vpi_user.h $(RM) -f $(DESTDIR)$(incdir)/vhpi_user.h -test: install.vpi.local +test.$(backend): install.vpi.local install.vpi.local: all.vpi $(MKDIR) -p $(incdirsuffix)/ghdl/ $(INSTALL_DATA) -p $(GRTSRCDIR)/vpi_user.h $(incdirsuffix)/ghdl/ -- cgit v1.2.3