diff options
author | Yang Xu <xuyang2018.jy@fujitsu.com> | 2021-06-30 09:52:05 +0800 |
---|---|---|
committer | Eryu Guan <guaneryu@gmail.com> | 2021-07-04 19:05:53 +0800 |
commit | 23e3bf7e28be1870192d4a3682508845b3ac9d69 (patch) | |
tree | f6437d3117beaee2763520fa042318f232e3ff55 /include | |
parent | c9419e671d0c41d76398734150811683f9f0d53e (diff) |
Makefile: fix bug when running make install under tests/* directory
The TESTS_DIR value is defined in TOPDIR makefile, it is empty here.
So running make install on ext4 directory will get the following info:
../../install-sh -o root -g root -m 755 -d /var/lib/xfstests//ext4
We can see they aren't installed under /var/lib/xfstests/tests/ext4 directory.
Fix this by moving TESTS_DIR definition to include/builddefs.in file.
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/builddefs.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/builddefs.in b/include/builddefs.in index f762a433..6641209f 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -35,7 +35,7 @@ PKG_VERSION = @pkg_version@ PKG_PLATFORM = @pkg_platform@ PKG_DISTRIBUTION= @pkg_distribution@ PKG_LIB_DIR = $(DESTDIR)@exec_prefix@/@pkg_name@ - +TESTS_DIR = tests CC = @cc@ AWK = @awk@ |