~canonical-hwe-team/powertop/packaging

« back to all changes in this revision

Viewing changes to po/Makefile.in.in

  • Committer: Joe Konno
  • Date: 2016-08-04 15:52:49 UTC
  • Revision ID: git-v1:c0bb3d79f3e4517cc3036f9924a4fbe7b983c7e4
gettext: run gettextize-0.18.2

Ran gettextize from gettext-0.18.2 to clean up some annoying
configuration warnings.

Also, allow m4 and po changelogs to be created, especially to help folks
concerned with the particulars of string translation.

Signed-off-by: Joe Konno <joe.konno@intel.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
# Please note that the actual code of GNU gettext is covered by the GNU
9
9
# General Public License and is *not* in the public domain.
10
10
#
11
 
# Origin: gettext-0.18
 
11
# Origin: gettext-0.18.2
12
12
GETTEXT_MACRO_VERSION = 0.18
13
13
 
14
14
PACKAGE = @PACKAGE@
96
96
        mv t-$@ $@
97
97
 
98
98
 
99
 
all: check-macro-version all-@USE_NLS@
 
99
all: all-@USE_NLS@
100
100
 
101
101
all-yes: stamp-po
102
102
all-no:
103
103
 
104
104
# Ensure that the gettext macros and this Makefile.in.in are in sync.
105
 
check-macro-version:
106
 
        @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
 
105
CHECK_MACRO_VERSION = \
 
106
        test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
107
107
          || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
108
108
               exit 1; \
109
109
             }
123
123
# $(POFILES) has been designed to not touch files that don't need to be
124
124
# changed.
125
125
stamp-po: $(srcdir)/$(DOMAIN).pot
 
126
        @$(CHECK_MACRO_VERSION)
126
127
        test ! -f $(srcdir)/$(DOMAIN).pot || \
127
128
          test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
128
129
        @test ! -f $(srcdir)/$(DOMAIN).pot || { \
137
138
 
138
139
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
139
140
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
 
141
# The determination of whether the package xyz is a GNU one is based on the
 
142
# heuristic whether some file in the top level directory mentions "GNU xyz".
 
143
# If GNU 'find' is available, we avoid grepping through monster files.
140
144
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
141
 
        if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \
 
145
        if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \
 
146
               LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f -size -10000000c -exec grep 'GNU @PACKAGE@' /dev/null '{}' ';' 2>/dev/null; \
 
147
             else \
 
148
               LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \
 
149
             fi; \
 
150
           } | grep -v 'libtool:' >/dev/null; then \
142
151
          package_gnu='GNU '; \
143
152
        else \
144
153
          package_gnu=''; \