[jhbuild] build: fix distcheck



commit 958955f829bf90b4b8c2dd084955c6f1e8681a91
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Aug 6 15:14:03 2017 +0300

    build: fix distcheck
    
    It fails with this error:
    trang ../../modulesets/moduleset.rnc ../../modulesets/moduleset.rng
    fatal: file not found: ../../modulesets/moduleset.rng (Permission denied)
    
    Fix this by generating *.rng file into builddir.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=785881

 .gitignore  |    1 -
 Makefile.am |    5 +++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 3b9a5d5..e1acb52 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,7 +8,6 @@ Makefile.in
 autom4te.cache/
 build-aux/
 config*.lineno
-moduleset.rng
 mo/
 /ABOUT-NLS
 /ChangeLog
diff --git a/Makefile.am b/Makefile.am
index bb2454c..7744d47 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -44,8 +44,9 @@ install-exec-local:
 # This will fail if xmllint or trang isn't installed.
 check-modulesets:
        xmllint --noout --dtdvalid $(srcdir)/modulesets/moduleset.dtd $(MODULESETS)
-       trang $(srcdir)/modulesets/moduleset.rnc $(srcdir)/modulesets/moduleset.rng
-       xmllint --noout --relaxng $(srcdir)/modulesets/moduleset.rng $(MODULESETS)
+       trang $(srcdir)/modulesets/moduleset.rnc $(builddir)/moduleset.rng
+       xmllint --noout --relaxng $(builddir)/moduleset.rng $(MODULESETS)
+       rm -f $(builddir)/moduleset.rng
 .PHONY: check-modulesets
 
 check: check-modulesets


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]