]> git.lyx.org Git - lyx.git/blob - po/Makefile.in.in
5f4508056d430f280ecf7f4e69755fef7fcdeaa3
[lyx.git] / po / Makefile.in.in
1 # Makefile for PO directory in any package using GNU gettext.
2 # Copyright (C) 1995-1997, 2000-2004 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
3 #
4 # This file can be copied and used freely without restrictions.  It can
5 # be used in projects which are not available under the GNU General Public
6 # License but which still want to provide support for the GNU gettext
7 # functionality.
8 # Please note that the actual code of GNU gettext is covered by the GNU
9 # General Public License and is *not* in the public domain.
10 #
11 # Origin: gettext-0.14
12
13 PACKAGE = @PACKAGE@
14 VERSION = @VERSION@
15
16 SHELL = /bin/sh
17 @SET_MAKE@
18
19 srcdir = @srcdir@
20 top_srcdir = @top_srcdir@
21 VPATH = @srcdir@
22
23 prefix = @prefix@
24 exec_prefix = @exec_prefix@
25 datadir = @datadir@
26 localedir = $(datadir)/locale
27 gettextsrcdir = $(datadir)/gettext/po
28
29 INSTALL = @INSTALL@
30 INSTALL_DATA = @INSTALL_DATA@
31 MKINSTALLDIRS = @MKINSTALLDIRS@
32 mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
33
34 AWK = @AWK@
35
36 GMSGFMT = @GMSGFMT@
37 MSGFMT = @MSGFMT@
38 XGETTEXT = @XGETTEXT@
39 MSGMERGE = msgmerge
40 MSGMERGE_UPDATE = @MSGMERGE@ --update
41 MSGINIT = msginit
42 MSGCONV = msgconv
43 MSGFILTER = msgfilter
44
45 POFILES = @POFILES@
46 GMOFILES = @GMOFILES@
47 UPDATEPOFILES = @UPDATEPOFILES@
48 DUMMYPOFILES = @DUMMYPOFILES@
49 DISTFILES.common = Makefile.in.in remove-potcdate.sin \
50 $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
51 DISTFILES = $(DISTFILES.common) Makevars POTFILES.in $(DOMAIN).pot stamp-po \
52 $(POFILES) $(GMOFILES) \
53 $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
54
55 POTFILE_IN_DEPS = $(shell find $(top_srcdir)/src -name Makefile.am)
56
57 POTFILES = \
58
59 CATALOGS = @CATALOGS@
60
61 # Makevars gets inserted here. (Don't remove this line!)
62
63 .SUFFIXES:
64 .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
65
66 .po.mo:
67         @echo "$(MSGFMT) -c -o $@ $<"; \
68         $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
69
70 .po.gmo:
71         @lang=`echo $* | sed -e 's,.*/,,'`; \
72         test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
73         echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \
74         cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
75
76 .sin.sed:
77         sed -e '/^#/d' $< > t-$@
78         mv t-$@ $@
79
80
81 all: all-@USE_NLS@
82
83 all-yes: stamp-po
84 all-no:
85
86 # stamp-po is a timestamp denoting the last time at which the CATALOGS have
87 # been loosely updated. Its purpose is that when a developer or translator
88 # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
89 # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
90 # invocations of "make" will do nothing. This timestamp would not be necessary
91 # if updating the $(CATALOGS) would always touch them; however, the rule for
92 # $(POFILES) has been designed to not touch files that don't need to be
93 # changed.
94 stamp-po: $(srcdir)/$(DOMAIN).pot
95         test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
96         @echo "touch stamp-po"
97         @echo timestamp > stamp-poT
98         @mv stamp-poT stamp-po
99
100 # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
101 # otherwise packages like GCC can not be built if only parts of the source
102 # have been downloaded.
103
104 # This target rebuilds $(DOMAIN).pot; it is an expensive operation.
105 # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
106 $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
107         $(MAKE) l10n_pots
108         $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
109           --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
110           --files-from=$(srcdir)/POTFILES.in \
111           --copyright-holder='$(COPYRIGHT_HOLDER)' \
112           --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)'
113         test ! -f $(DOMAIN).po || { \
114           if test -f $(srcdir)/$(DOMAIN).pot; then \
115             sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
116             sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
117             if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
118               rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
119             else \
120               rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
121               mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
122             fi; \
123           else \
124             mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
125           fi; \
126         }
127
128 # This rule has no dependencies: we don't need to update $(DOMAIN).pot at
129 # every "make" invocation, only create it when it is missing.
130 # Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
131 $(srcdir)/$(DOMAIN).pot:
132         $(MAKE) $(DOMAIN).pot-update
133
134 # This target rebuilds a PO file if $(DOMAIN).pot has changed.
135 # Note that a PO file is not touched if it doesn't need to be changed.
136 $(POFILES): $(srcdir)/$(DOMAIN).pot
137         @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
138         if test -f "$(srcdir)/$${lang}.po"; then \
139           test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
140           echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
141           cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \
142         else \
143           $(MAKE) $${lang}.po-create; \
144         fi
145
146
147 install: install-exec install-data
148 install-exec:
149 install-data: install-data-@USE_NLS@
150         if test "$(PACKAGE)" = "gettext-tools"; then \
151           $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
152           for file in $(DISTFILES.common) Makevars.template; do \
153             $(INSTALL_DATA) $(srcdir)/$$file \
154                             $(DESTDIR)$(gettextsrcdir)/$$file; \
155           done; \
156           for file in Makevars; do \
157             rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
158           done; \
159         else \
160           : ; \
161         fi
162 install-data-no: all
163 install-data-yes: all
164         $(mkinstalldirs) $(DESTDIR)$(datadir)
165         @catalogs='$(CATALOGS)'; \
166         for cat in $$catalogs; do \
167           cat=`basename $$cat`; \
168           lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
169           dir=$(localedir)/$$lang/LC_MESSAGES; \
170           $(mkinstalldirs) $(DESTDIR)$$dir; \
171           if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
172           $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
173           echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
174           for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
175             if test -n "$$lc"; then \
176               if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
177                 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
178                 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
179                 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
180                 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
181                  for file in *; do \
182                    if test -f $$file; then \
183                      ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
184                    fi; \
185                  done); \
186                 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
187               else \
188                 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
189                   :; \
190                 else \
191                   rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
192                   mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
193                 fi; \
194               fi; \
195               rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
196               ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
197               ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
198               cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
199               echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
200             fi; \
201           done; \
202         done
203
204 install-strip: install
205
206 installdirs: installdirs-exec installdirs-data
207 installdirs-exec:
208 installdirs-data: installdirs-data-@USE_NLS@
209         if test "$(PACKAGE)" = "gettext-tools"; then \
210           $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
211         else \
212           : ; \
213         fi
214 installdirs-data-no:
215 installdirs-data-yes:
216         $(mkinstalldirs) $(DESTDIR)$(datadir)
217         @catalogs='$(CATALOGS)'; \
218         for cat in $$catalogs; do \
219           cat=`basename $$cat`; \
220           lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
221           dir=$(localedir)/$$lang/LC_MESSAGES; \
222           $(mkinstalldirs) $(DESTDIR)$$dir; \
223           for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
224             if test -n "$$lc"; then \
225               if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
226                 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
227                 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
228                 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
229                 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
230                  for file in *; do \
231                    if test -f $$file; then \
232                      ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
233                    fi; \
234                  done); \
235                 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
236               else \
237                 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
238                   :; \
239                 else \
240                   rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
241                   mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
242                 fi; \
243               fi; \
244             fi; \
245           done; \
246         done
247
248 # Define this as empty until I found a useful application.
249 installcheck:
250
251 uninstall: uninstall-exec uninstall-data
252 uninstall-exec:
253 uninstall-data: uninstall-data-@USE_NLS@
254         if test "$(PACKAGE)" = "gettext-tools"; then \
255           for file in $(DISTFILES.common) Makevars.template; do \
256             rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
257           done; \
258         else \
259           : ; \
260         fi
261 uninstall-data-no:
262 uninstall-data-yes:
263         catalogs='$(CATALOGS)'; \
264         for cat in $$catalogs; do \
265           cat=`basename $$cat`; \
266           lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
267           for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
268             rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
269           done; \
270         done
271
272 check: all
273
274 info dvi ps pdf html tags TAGS ctags CTAGS ID:
275
276 mostlyclean:
277         rm -f remove-potcdate.sed
278         rm -f stamp-poT
279         rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
280         rm -fr *.o
281
282 clean: mostlyclean
283
284 distclean: clean
285         rm -f Makefile Makefile.in POTFILES *.mo
286
287 maintainer-clean: distclean
288         @echo "This command is intended for maintainers to use;"
289         @echo "it deletes files that may require special tools to rebuild."
290         rm -f stamp-po $(GMOFILES)
291
292 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
293 dist distdir:
294         $(MAKE) update-po
295         @$(MAKE) dist2
296 # This is a separate target because 'update-po' must be executed before.
297 dist2: $(DISTFILES)
298         dists="$(DISTFILES)"; \
299         if test "$(PACKAGE)" = "gettext-tools"; then \
300           dists="$$dists Makevars.template"; \
301         fi; \
302         if test -f $(srcdir)/ChangeLog; then \
303           dists="$$dists ChangeLog"; \
304         fi; \
305         for i in 0 1 2 3 4 5 6 7 8 9; do \
306           if test -f $(srcdir)/ChangeLog.$$i; then \
307             dists="$$dists ChangeLog.$$i"; \
308           fi; \
309         done; \
310         if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
311         for file in $$dists; do \
312           if test -f $$file; then \
313             cp -p $$file $(distdir); \
314           else \
315             cp -p $(srcdir)/$$file $(distdir); \
316           fi; \
317         done
318
319 update-po: Makefile
320         $(MAKE) $(DOMAIN).pot-update
321         test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
322         $(MAKE) update-gmo
323
324 # General rule for creating PO files.
325
326 .nop.po-create:
327         @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
328         echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
329         exit 1
330
331 # General rule for updating PO files.
332
333 .nop.po-update:
334         @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
335         if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
336         tmpdir=`pwd`; \
337         echo "$$lang:"; \
338         test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
339         echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
340         cd $(srcdir); \
341         if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \
342           if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
343             rm -f $$tmpdir/$$lang.new.po; \
344           else \
345             if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
346               :; \
347             else \
348               echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
349               exit 1; \
350             fi; \
351           fi; \
352         else \
353           echo "msgmerge for $$lang.po failed!" 1>&2; \
354           rm -f $$tmpdir/$$lang.new.po; \
355         fi
356
357 $(DUMMYPOFILES):
358
359 update-gmo: Makefile $(GMOFILES)
360         @:
361
362 Makefile: Makefile.in.in $(top_builddir)/config.status @POMAKEFILEDEPS@
363         cd $(top_builddir) \
364           && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
365                $(SHELL) ./config.status
366
367 ${srcdir}/POTFILES.in: $(POTFILE_IN_DEPS)
368         LC_ALL=C ; export LC_ALL ; \
369         rm -f $@-t \
370         && ( cd $(top_srcdir); \
371              grep -l "_(\".*\")" `find src \( -name '*.[Cch]' -o -name '*.C.in' \) -print` |\
372              grep -v -e "src/support/package.C$$" |\
373              sort | uniq ) > $@-t \
374         && mv $@-t $@
375
376 l10n_pots: qt_l10n.pot layouts_l10n.pot languages_l10n.pot ui_l10n.pot
377         cat $^ | \
378         msguniq -o $(DOMAIN).po && rm -f  $^
379
380 qt_l10n.pot: $(top_srcdir)/src/frontends/qt3/ui/*.ui
381         LC_ALL=C ; export LC_ALL ; \
382         $(AWK) -v top_srcdir="$(top_srcdir)" ' \
383                 function fixupfilename() \
384                 {\
385                         return substr(FILENAME, length(top_srcdir "/") + 1);\
386                 }\
387                 /<string>/ { \
388                         line=$$0; \
389                         sub(/.*<string>/, "", line); \
390                         sub(/<\/string>.*/, "", line); \
391                         gsub(/&amp;/, "\\&", line); \
392                         gsub(/&lt;/, "<", line); \
393                         gsub(/&gt;/, ">", line); \
394                         gsub(/"/, "\\\"", line); \
395                         if (length(line) > 0) {\
396                                 printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n",\
397                                         fixupfilename(), FNR, line); \
398                         } \
399                 }' \
400         ${top_srcdir}/src/frontends/qt3/ui/*.ui > $@
401
402 layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/lib/layouts/*.inc
403         LC_ALL=C ; export LC_ALL ; \
404         $(AWK) -v top_srcdir="$(top_srcdir)" ' \
405                 function fixupfilename() \
406                 {\
407                         return substr(FILENAME, length(top_srcdir "/") + 1);\
408                 }\
409                 /^Style / { \
410                         line=$$0; \
411                         sub(/Style /, "", line); \
412                         gsub(/"/, "", line); \
413                         gsub(/_/, " ", line); \
414                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
415                                 fixupfilename(), FNR, line); \
416                 } \
417                 /LabelString[A-Za-z]*/ { \
418                         line=$$0; \
419                         sub(/[[:space:]]*LabelString[A-Za-z]*[[:space:]]*/, "", line); \
420                         gsub(/"/, "", line); \
421                         if (line != "") \
422                           printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
423                                  fixupfilename(), FNR, line); \
424                 } \
425                 /GuiName/ { \
426                         line=$$0; \
427                         sub(/[[:space:]]*GuiName[[:space:]]*/, "", line); \
428                         gsub(/"/, "", line); \
429                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
430                                 fixupfilename(), FNR, line); \
431                 } \
432                 /ListName/ { \
433                         line=$$0; \
434                         sub(/[[:space:]]*ListName[[:space:]]*/, "", line); \
435                         gsub(/"/, "", line); \
436                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
437                                 fixupfilename(), FNR, line); \
438                 }' \
439         ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc \
440         | sed 's/\\/\\\\/g' > $@
441
442 languages_l10n.pot: $(top_srcdir)/lib/languages
443         $(AWK) -v top_srcdir="$(top_srcdir)" ' \
444                 function fixupfilename() \
445                 {\
446                         return substr(FILENAME, length(top_srcdir "/") + 1);\
447                 }\
448                 /^#/ { \
449                         next; \
450                 } \
451                 { \
452                         match($$0,"\"[^\"]*\""); \
453                         lang=substr($$0,RSTART,RLENGTH); \
454                         gsub(/"/, "", lang); \
455                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
456                         fixupfilename(), FNR, lang); \
457                 }' \
458         ${top_srcdir}/lib/languages > $@
459
460 ui_l10n.pot: $(top_srcdir)/lib/ui/*.ui
461         LC_ALL=C ; export LC_ALL ; \
462         $(AWK) -v top_srcdir="$(top_srcdir)" ' \
463                 function fixupfilename() \
464                 {\
465                         return substr(FILENAME, length(top_srcdir "/") + 1);\
466                 }\
467                 /^[^#]*Submenu/ { \
468                         line=$$0; \
469                         sub(/[^"]*"/, "", line); \
470                         sub(/".*/, "", line); \
471                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
472                                 fixupfilename(), FNR, line); \
473                 } \
474                 /^[^#]*Toolbar/ { \
475                         line=$$0; \
476                         sub(/[^"]*"/, "", line); \
477                         sub(/".*/, "", line); \
478                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
479                                 fixupfilename(), FNR, line); \
480                 } \
481                 /^[^#]*Item/ { \
482                         line=$$0; \
483                         sub(/[^"]*"/, "", line); \
484                         sub(/".*/, "", line); \
485                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
486                                 fixupfilename(), FNR, line); \
487                 }' \
488         ${top_srcdir}/lib/ui/*.ui > $@
489
490 i18n.php: $(POFILES)
491         (cd $(srcdir) ; ./postats.sh $(POFILES)) >$@
492
493 force:
494
495 # Tell versions [3.59,3.63) of GNU make not to export all variables.
496 # Otherwise a system limit (for SysV at least) may be exceeded.
497 .NOEXPORT: