[yelp] Convert data/domains subdir to non-recursive make



commit ea6d834044c014b29a2b6c25e3fdb236d91dcd11
Author: David King <amigadave amigadave com>
Date:   Tue Oct 20 12:55:14 2015 +0200

    Convert data/domains subdir to non-recursive make

 Makefile.am              |   20 +++++++++++++++++++-
 configure.ac             |    1 -
 data/Makefile.am         |    2 +-
 data/domains/Makefile.am |   18 ------------------
 4 files changed, 20 insertions(+), 21 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index b29acb4..b89de83 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -126,6 +126,21 @@ dist_scalableicon_DATA = \
        data/icons/hicolor/scalable/status/yelp-page-video-symbolic.svg \
        data/icons/hicolor/scalable/status/yelp-page-symbolic.svg
 
+domaindir = $(datadir)/yelp-xsl/xslt/common/domains
+
+data/domains/yelp.pot: data/domains/yelp.xml.in
+       $(ITSTOOL) -o "$@" "$^"
+
+data/domains/yelp.xml: data/domains/yelp.xml.in
+       $(AM_V_GEN) ( \
+       for lang in $(ALL_LINGUAS); do \
+         msgfmt -o "$$lang.mo" "$(top_srcdir)/po/$$lang.po" || exit 1; \
+       done; \
+       $(ITSTOOL) -o "$@" -j "$^" $(foreach ll,$(ALL_LINGUAS),$(ll).mo); \
+       rm $(foreach ll,$(ALL_LINGUAS),$(ll).mo))
+       
+domain_DATA = data/domains/yelp.xml
+
 xsldir = $(pkgdatadir)/xslt
 
 xsl_DATA = \
@@ -138,7 +153,10 @@ xsl_DATA = \
 dist_noinst_DATA = \
        $(desktop_in_files) \
        $(gsettings_SCHEMAS) \
-       $(yelp_headers)
+       $(yelp_headers) \
+       data/domains/yelp.pot \
+       data/domains/yelp.xml.in \
+       data/domains/yelp.xml
 
 dist_noinst_SCRIPTS = \
        autogen.sh
diff --git a/configure.ac b/configure.ac
index 56cda57..8a97db1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -157,7 +157,6 @@ docs/libyelp/Makefile
 docs/libyelp/version.xml
 libyelp/Makefile
 data/Makefile
-data/domains/Makefile
 data/dtd/Makefile
 data/dtd/catalog
 data/mathjax/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
index ed2953e..ff043d0 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1 +1 @@
-SUBDIRS = domains dtd mathjax
+SUBDIRS = dtd mathjax


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