[Libosinfo] [osinfo-db PATCH 1/1] Fix out-of-tree build

Fabiano Fidêncio fidencio at redhat.com
Mon Apr 15 10:11:49 UTC 2019


Let's set an ABS_TOPDIR and use it to run our tests, fixing then
the out-of-tree build.

https://gitlab.com/libosinfo/osinfo-db/issues/25
---
 Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 4f6f8d4..a1bdcfe 100644
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,8 @@ INTLTOOL_MERGE_OPTS = $(INTLTOOL_MERGE_OPTS_$(V))
 INTLTOOL_MERGE_OPTS_0 = -q
 INTLTOOL_MERGE_OPTS_1 =
 
+ABS_TOPDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
+
 all: $(ARCHIVE) osinfo-db.spec mingw-osinfo-db.spec
 
 install: $(ARCHIVE)
@@ -121,4 +123,4 @@ update-po:
         done
 
 check: $(DATA_FILES) $(SCHEMA_FILES)
-	$(PYTHON) -m pytest
+	$(PYTHON) -m pytest $(ABS_TOPDIR)tests
-- 
2.20.1




More information about the Libosinfo mailing list