[Libosinfo] [osinfo-db PATCH 1/4] Makefile: Split xmllint from check

Fabiano Fidêncio fidencio at redhat.com
Wed Mar 13 20:44:27 UTC 2019


Let's have xmllint split from check so we can easily add more targets to
to the `make check`.

With the change `make lint` became an available make target as well.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 329f409..1367de3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,3 @@
-
 VPATH = .
 
 ifdef SOURCE_DATE_EPOCH
@@ -51,7 +50,6 @@ INTLTOOL_MERGE_OPTS = $(INTLTOOL_MERGE_OPTS_$(V))
 INTLTOOL_MERGE_OPTS_0 = -q
 INTLTOOL_MERGE_OPTS_1 =
 
-
 all: $(ARCHIVE) osinfo-db.spec mingw-osinfo-db.spec
 
 install: $(ARCHIVE)
@@ -120,10 +118,11 @@ update-po:
           fi; \
         done
 
-check: $(DATA_FILES) $(SCHEMA_FILES)
+lint: $(DATA_FILES) $(SCHEMA_FILES)
 	for xml in `find data -name '*.xml' | sort`; do \
 	  if ! $(XMLLINT) --relaxng data/schema/osinfo.rng --noout $$xml; then \
 	    exit 1; \
 	  fi; \
 	done
 
+check: lint
-- 
2.20.1




More information about the Libosinfo mailing list