aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorXiretza <xiretza@xiretza.xyz>2022-03-17 10:38:51 +0100
committerXiretza <xiretza@xiretza.xyz>2022-03-17 10:38:51 +0100
commit193528ca0d3678fa90cdb2878f361cfcbf23c940 (patch)
tree67f6d0ceeb24b858eea34ae9054382f6fcbfa98d /Makefile.in
parent8fe837a38b18a98aa7abd36386844b9729e22427 (diff)
downloadghdl-193528ca0d3678fa90cdb2878f361cfcbf23c940.tar.gz
ghdl-193528ca0d3678fa90cdb2878f361cfcbf23c940.tar.bz2
ghdl-193528ca0d3678fa90cdb2878f361cfcbf23c940.zip
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.
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 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/