Fixed testsuite Makefile brokenness from 9091a207.

Details:
- Fixed a makefile error encountered when building the testsuite directly
  in its directory (as opposed to indirectly via 'make test'). The fix
  involves introducing a new variable, BUILD_PATH, alongside the existing
  DIST_PATH variable. By default, BUILD_PATH is set to the current
  directory, and is overridden by other Makefiles used by, for example,
  the testsuite and standalone test drivers in testsuite or test,
  respectively.
- Some files/directories in common.mk were redefined in terms of
  BUILD_DIR, such as the locations of config.mk file and the intermediate
  include directory.
This commit is contained in:
Field G. Van Zee
2017-12-14 15:47:41 -06:00
parent 6a3a8924c0
commit 86cd23b737
6 changed files with 25 additions and 15 deletions

View File

@@ -54,9 +54,10 @@
# --- Distribution path override -----------------------------------------------
#
# Override the DIST_PATH value obtained from config.mk (via common.mk) by
# defining it here (prior to including the common.mk).
# Override the default DIST_PATH and BUILD_PATH values so that make can find
# the source distribution and build location.
DIST_PATH := ../..
BUILD_PATH := ../..