OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [opcodes/] [po/] [Make-in] - Blame information for rev 157

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# Makefile for program source directory in GNU NLS utilities package.
2
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper 
3
# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
4
#
5
# This file may be copied and used freely without restrictions.  It can
6
# be used in projects which are not available under the GNU Public License
7
# but which still want to provide support for the GNU gettext functionality.
8
# Please note that the actual code is *not* freely available.
9
 
10
PACKAGE = @PACKAGE@
11
VERSION = @VERSION@
12
 
13
SHELL = /bin/sh
14
@SET_MAKE@
15
 
16
srcdir = @srcdir@
17
top_srcdir = @top_srcdir@
18
VPATH = @srcdir@
19
top_builddir = @top_builddir@
20
 
21
prefix = @prefix@
22
exec_prefix = @exec_prefix@
23
datadir = $(prefix)/@DATADIRNAME@
24
localedir = $(datadir)/locale
25
gnulocaledir = $(prefix)/share/locale
26
gettextsrcdir = $(prefix)/share/gettext/po
27
subdir = po
28
 
29
DESTDIR =
30
 
31
INSTALL = @INSTALL@
32
INSTALL_DATA = @INSTALL_DATA@
33
MKINSTALLDIRS = @MKINSTALLDIRS@
34
 
35
CC = @CC@
36
GENCAT = @GENCAT@
37
GMSGFMT = PATH=../src:$$PATH @GMSGFMT@
38
MSGFMT = @MSGFMT@
39
XGETTEXT = PATH=../src:$$PATH @XGETTEXT@
40
MSGMERGE = PATH=../src:$$PATH msgmerge
41
 
42
DEFS = @DEFS@
43
CFLAGS = @CFLAGS@
44
CPPFLAGS = @CPPFLAGS@
45
 
46
INCLUDES = -I.. -I$(top_srcdir)/intl
47
 
48
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
49
 
50
SOURCES = cat-id-tbl.c
51
POFILES = @POFILES@
52
GMOFILES = @GMOFILES@
53
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
54
stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES)
55
 
56
POTFILES = \
57
 
58
CATALOGS = @CATALOGS@
59
CATOBJEXT = @CATOBJEXT@
60
INSTOBJEXT = @INSTOBJEXT@
61
 
62
.SUFFIXES:
63
.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat
64
 
65
.c.o:
66
        $(COMPILE) $<
67
 
68
.po.pox:
69
        $(MAKE) $(PACKAGE).pot
70
        $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox
71
 
72
.po.mo:
73
        $(MSGFMT) -o $@ $<
74
 
75
.po.gmo:
76
        file=`echo $* | sed 's,.*/,,'`.gmo \
77
          && rm -f $$file && $(GMSGFMT) -o $$file $<
78
 
79
.po.cat:
80
        sed -f ../intl/po2msg.sed < $< > $*.msg \
81
          && rm -f $@ && $(GENCAT) $@ $*.msg
82
 
83
 
84
all: all-@USE_NLS@
85
 
86
all-yes: $(CATALOGS) @MAINT@ $(PACKAGE).pot
87
all-no:
88
 
89
$(srcdir)/$(PACKAGE).pot: $(POTFILES)
90
        $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
91
          --add-comments --keyword=_ --keyword=N_ \
92
          --msgid-bugs-address=bug-binutils@gnu.org \
93
          --files-from=$(srcdir)/POTFILES.in
94
        rm -f $(srcdir)/$(PACKAGE).pot
95
        mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot
96
 
97
$(srcdir)/cat-id-tbl.c: stamp-cat-id; @:
98
$(srcdir)/stamp-cat-id: $(PACKAGE).pot
99
        rm -f cat-id-tbl.tmp
100
        sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \
101
                | sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp
102
        if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \
103
          rm cat-id-tbl.tmp; \
104
        else \
105
          echo cat-id-tbl.c changed; \
106
          rm -f $(srcdir)/cat-id-tbl.c; \
107
          mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \
108
        fi
109
        cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id
110
 
111
 
112
install: install-exec install-data
113
install-exec:
114
install-info:
115
install-html:
116
install-data: install-data-@USE_NLS@
117
install-data-no: all
118
install-data-yes: all
119
        if test -r $(MKINSTALLDIRS); then \
120
          $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
121
        else \
122
          $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
123
        fi
124
        @catalogs='$(CATALOGS)'; \
125
        for cat in $$catalogs; do \
126
          cat=`basename $$cat`; \
127
          case "$$cat" in \
128
            *.gmo) destdir=$(gnulocaledir);; \
129
            *)     destdir=$(localedir);; \
130
          esac; \
131
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
132
          dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
133
          if test -r $(MKINSTALLDIRS); then \
134
            $(MKINSTALLDIRS) $$dir; \
135
          else \
136
            $(top_srcdir)/mkinstalldirs $$dir; \
137
          fi; \
138
          if test -r $$cat; then \
139
            $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
140
            echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
141
          else \
142
            $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
143
            echo "installing $(srcdir)/$$cat as" \
144
                 "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
145
          fi; \
146
          if test -r $$cat.m; then \
147
            $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
148
            echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
149
          else \
150
            if test -r $(srcdir)/$$cat.m ; then \
151
              $(INSTALL_DATA) $(srcdir)/$$cat.m \
152
                $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
153
              echo "installing $(srcdir)/$$cat as" \
154
                   "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
155
            else \
156
              true; \
157
            fi; \
158
          fi; \
159
        done
160
        if test "$(PACKAGE)" = "gettext"; then \
161
          if test -r $(MKINSTALLDIRS); then \
162
            $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
163
          else \
164
            $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
165
          fi; \
166
          $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
167
                          $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
168
        else \
169
          : ; \
170
        fi
171
 
172
# Define this as empty until I found a useful application.
173
installcheck:
174
 
175
uninstall:
176
        catalogs='$(CATALOGS)'; \
177
        for cat in $$catalogs; do \
178
          cat=`basename $$cat`; \
179
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
180
          rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
181
          rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
182
          rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
183
          rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
184
        done
185
        rm -f $(DESTDIR)$(gettextsrcdir)/po-Makefile.in.in
186
 
187
check: all
188
 
189
cat-id-tbl.o: ../intl/libgettext.h
190
 
191
html dvi pdf ps info tags TAGS ID:
192
 
193
mostlyclean:
194
        rm -f core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp
195
        rm -fr *.o
196
 
197
clean: mostlyclean
198
 
199
distclean: clean
200
        rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
201
 
202
maintainer-clean: distclean
203
        @echo "This command is intended for maintainers to use;"
204
        @echo "it deletes files that may require special tools to rebuild."
205
        rm -f $(GMOFILES)
206
 
207
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
208
dist distdir: update-po $(DISTFILES)
209
        dists="$(DISTFILES)"; \
210
        for file in $$dists; do \
211
          ln $(srcdir)/$$file $(distdir) 2> /dev/null \
212
            || cp -p $(srcdir)/$$file $(distdir); \
213
        done
214
 
215
update-po: Makefile
216
        $(MAKE) $(PACKAGE).pot
217
        PATH=`pwd`/../src:$$PATH; \
218
        cd $(srcdir); \
219
        catalogs='$(CATALOGS)'; \
220
        for cat in $$catalogs; do \
221
          cat=`basename $$cat`; \
222
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
223
          mv $$lang.po $$lang.old.po; \
224
          echo "$$lang:"; \
225
          if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \
226
            rm -f $$lang.old.po; \
227
          else \
228
            echo "msgmerge for $$cat failed!"; \
229
            rm -f $$lang.po; \
230
            mv $$lang.old.po $$lang.po; \
231
          fi; \
232
        done
233
 
234
POTFILES: POTFILES.in
235
        ( if test 'x$(srcdir)' != 'x.'; then \
236
            posrcprefix='$(top_srcdir)/'; \
237
          else \
238
            posrcprefix="../"; \
239
          fi; \
240
          rm -f $@-t $@ \
241
            && (sed -e '/^#/d' -e '/^[  ]*$$/d' \
242
                    -e "s@.*@   $$posrcprefix& \\\\@" < $(srcdir)/$@.in \
243
                | sed -e '$$s/\\$$//') > $@-t \
244
            && chmod a-w $@-t \
245
            && mv $@-t $@ )
246
 
247
POTFILES.in: @MAINT@ ../Makefile
248
        cd .. && $(MAKE) po/POTFILES.in
249
 
250
Makefile: Make-in ../config.status POTFILES
251
        cd .. \
252
          && CONFIG_FILES=$(subdir)/Makefile.in:$(subdir)/Make-in \
253
             CONFIG_HEADERS= $(SHELL) ./config.status
254
 
255
# Tell versions [3.59,3.63) of GNU make not to export all variables.
256
# Otherwise a system limit (for SysV at least) may be exceeded.
257
.NOEXPORT:

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.