From: Eugene Syromyatnikov <evgsyr@gmail.com>
Date: Sat, 5 Aug 2017 18:03:38 +0000 (+0200)
Subject: Makefile.am: build top directory first
X-Git-Tag: v4.19~180
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d56c3d808319687c7de4887feb760c800f329ff;p=strace

Makefile.am: build top directory first

This solves potential issues when tests run first and strace is rebuilt
only after they have finished.  As noted in [1], providing the current
directory explicitly should help.

[1] https://www.gnu.org/software/automake/manual/html_node/Subdirectories.html

* Makefile.am (SUBDIRS): Prepend the current directory.
---

diff --git a/Makefile.am b/Makefile.am
index 92e80842..78379e5b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,7 +35,7 @@ endif
 if HAVE_MX32_RUNTIME
 TESTS_MX32 = tests-mx32
 endif
-SUBDIRS = tests $(TESTS_M32) $(TESTS_MX32)
+SUBDIRS = . tests $(TESTS_M32) $(TESTS_MX32)
 
 bin_PROGRAMS = strace
 man_MANS = strace.1