OLD | NEW |
1 # Makefile for program source directory in GNU NLS utilities package. | 1 # Makefile for program source directory in GNU NLS utilities package. |
2 # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu> | 2 # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu> |
3 # Copyright 2003, 2006 Free Software Foundation, Inc. | 3 # Copyright 2003, 2006, 2007, 2009 Free Software Foundation, Inc. |
4 # | 4 # |
5 # This file may be copied and used freely without restrictions. It can | 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 | 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. | 7 # but which still want to provide support for the GNU gettext functionality. |
8 # Please note that the actual code is *not* freely available. | 8 # Please note that the actual code is *not* freely available. |
9 | 9 |
10 PACKAGE = @PACKAGE@ | 10 PACKAGE = @PACKAGE@ |
11 VERSION = @VERSION@ | 11 VERSION = @VERSION@ |
12 | 12 |
13 SHELL = /bin/sh | 13 SHELL = /bin/sh |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 && rm -f $@ && $(GENCAT) $@ $*.msg | 81 && rm -f $@ && $(GENCAT) $@ $*.msg |
82 | 82 |
83 | 83 |
84 all: all-@USE_NLS@ | 84 all: all-@USE_NLS@ |
85 | 85 |
86 all-yes: $(CATALOGS) @MAINT@ $(PACKAGE).pot | 86 all-yes: $(CATALOGS) @MAINT@ $(PACKAGE).pot |
87 all-no: | 87 all-no: |
88 | 88 |
89 $(srcdir)/$(PACKAGE).pot: $(POTFILES) | 89 $(srcdir)/$(PACKAGE).pot: $(POTFILES) |
90 $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \ | 90 $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \ |
91 » --add-comments --keyword=_ --keyword=N_ \ | 91 » --add-comments -C --keyword=_ --keyword=N_ \ |
| 92 » --msgid-bugs-address=bug-binutils@gnu.org \ |
92 --files-from=$(srcdir)/POTFILES.in | 93 --files-from=$(srcdir)/POTFILES.in |
93 rm -f $(srcdir)/$(PACKAGE).pot | 94 rm -f $(srcdir)/$(PACKAGE).pot |
94 mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot | 95 mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot |
95 | 96 |
96 $(srcdir)/cat-id-tbl.c: stamp-cat-id; @: | 97 $(srcdir)/cat-id-tbl.c: stamp-cat-id; @: |
97 $(srcdir)/stamp-cat-id: $(PACKAGE).pot | 98 $(srcdir)/stamp-cat-id: $(PACKAGE).pot |
98 rm -f cat-id-tbl.tmp | 99 rm -f cat-id-tbl.tmp |
99 sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \ | 100 sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \ |
100 | sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp | 101 | sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp |
101 if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \ | 102 if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \ |
102 rm cat-id-tbl.tmp; \ | 103 rm cat-id-tbl.tmp; \ |
103 else \ | 104 else \ |
104 echo cat-id-tbl.c changed; \ | 105 echo cat-id-tbl.c changed; \ |
105 rm -f $(srcdir)/cat-id-tbl.c; \ | 106 rm -f $(srcdir)/cat-id-tbl.c; \ |
106 mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \ | 107 mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \ |
107 fi | 108 fi |
108 cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id | 109 cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id |
109 | 110 |
110 | 111 |
111 install: install-exec install-data | 112 install: install-exec install-data |
112 install-exec: | 113 install-exec: |
113 install-info: | 114 install-info: |
114 install-html: | 115 install-html: |
| 116 install-pdf: |
115 install-data: install-data-@USE_NLS@ | 117 install-data: install-data-@USE_NLS@ |
116 install-data-no: all | 118 install-data-no: all |
117 install-data-yes: all | 119 install-data-yes: all |
118 if test -r $(MKINSTALLDIRS); then \ | 120 if test -r $(MKINSTALLDIRS); then \ |
119 $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \ | 121 $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \ |
120 else \ | 122 else \ |
121 » $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \ | 123 » $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(datadir); \ |
122 fi | 124 fi |
123 @catalogs='$(CATALOGS)'; \ | 125 @catalogs='$(CATALOGS)'; \ |
124 for cat in $$catalogs; do \ | 126 for cat in $$catalogs; do \ |
125 cat=`basename $$cat`; \ | 127 cat=`basename $$cat`; \ |
126 case "$$cat" in \ | 128 case "$$cat" in \ |
127 *.gmo) destdir=$(gnulocaledir);; \ | 129 *.gmo) destdir=$(gnulocaledir);; \ |
128 *) destdir=$(localedir);; \ | 130 *) destdir=$(localedir);; \ |
129 esac; \ | 131 esac; \ |
130 lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ | 132 lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ |
131 dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \ | 133 dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \ |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 cd .. && $(MAKE) po/POTFILES.in | 249 cd .. && $(MAKE) po/POTFILES.in |
248 | 250 |
249 Makefile: Make-in ../config.status POTFILES | 251 Makefile: Make-in ../config.status POTFILES |
250 cd .. \ | 252 cd .. \ |
251 && CONFIG_FILES=$(subdir)/Makefile.in:$(subdir)/Make-in \ | 253 && CONFIG_FILES=$(subdir)/Makefile.in:$(subdir)/Make-in \ |
252 CONFIG_HEADERS= $(SHELL) ./config.status | 254 CONFIG_HEADERS= $(SHELL) ./config.status |
253 | 255 |
254 # Tell versions [3.59,3.63) of GNU make not to export all variables. | 256 # Tell versions [3.59,3.63) of GNU make not to export all variables. |
255 # Otherwise a system limit (for SysV at least) may be exceeded. | 257 # Otherwise a system limit (for SysV at least) may be exceeded. |
256 .NOEXPORT: | 258 .NOEXPORT: |
OLD | NEW |