📄 makefile
字号:
# Makefile for PO directory in any package using GNU gettext.# Copyright (C) 1995-1997, 2000-2006 by Ulrich Drepper <drepper@gnu.ai.mit.edu>## This file can be copied and used freely without restrictions. It can# be used in projects which are not available under the GNU General Public# License but which still want to provide support for the GNU gettext# functionality.# Please note that the actual code of GNU gettext is covered by the GNU# General Public License and is *not* in the public domain.## Origin: gettext-0.16PACKAGE = minicomVERSION = 2.3PACKAGE_BUGREPORT = minicom-devel@lists.alioth.debian.orgSHELL = /bin/shsrcdir = .top_srcdir = ..prefix = /usr/localexec_prefix = ${prefix}datarootdir = ${prefix}/sharedatadir = ${datarootdir}localedir = ${datarootdir}/localegettextsrcdir = $(datadir)/gettext/poINSTALL = /usr/bin/install -cINSTALL_DATA = ${INSTALL} -m 644# We use $(mkdir_p).# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,# $(SHELL) /Users/ken/Desktop/minicom-2.3/install-sh does not start with $(SHELL), so we add it.# In automake >= 1.10, $(top_builddir)/./install-sh -c -d is derived from ${MKDIR_P}, which is defined# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake# versions, $(mkinstalldirs) and $(install_sh) are unused.mkinstalldirs = $(SHELL) $(SHELL) /Users/ken/Desktop/minicom-2.3/install-sh -dinstall_sh = $(SHELL) $(SHELL) /Users/ken/Desktop/minicom-2.3/install-shMKDIR_P = .././install-sh -c -dmkdir_p = $(top_builddir)/./install-sh -c -dGMSGFMT_ = :GMSGFMT_no = :GMSGFMT_yes = :GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))MSGFMT_ = :MSGFMT_no = :MSGFMT_yes = :MSGFMT = $(MSGFMT_$(USE_MSGCTXT))XGETTEXT_ = :XGETTEXT_no = :XGETTEXT_yes = :XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))MSGMERGE = msgmergeMSGMERGE_UPDATE = : --updateMSGINIT = msginitMSGCONV = msgconvMSGFILTER = msgfilterPOFILES = cs.po da.po de.po es.po fr.po fi.po hu.po ja.po nb.po pl.po pt_BR.po ro.po ru.po rw.po sv.po vi.po zh_TW.poGMOFILES = cs.gmo da.gmo de.gmo es.gmo fr.gmo fi.gmo hu.gmo ja.gmo nb.gmo pl.gmo pt_BR.gmo ro.gmo ru.gmo rw.gmo sv.gmo vi.gmo zh_TW.gmoUPDATEPOFILES = cs.po-update da.po-update de.po-update es.po-update fr.po-update fi.po-update hu.po-update ja.po-update nb.po-update pl.po-update pt_BR.po-update ro.po-update ru.po-update rw.po-update sv.po-update vi.po-update zh_TW.po-updateDUMMYPOFILES = cs.nop da.nop de.nop es.nop fr.nop fi.nop hu.nop ja.nop nb.nop pl.nop pt_BR.nop ro.nop ru.nop rw.nop sv.nop vi.nop zh_TW.nopDISTFILES.common = Makefile.in.in remove-potcdate.sin \$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \$(POFILES) $(GMOFILES) \$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)POTFILES = \ ../src/config.c \ ../src/dial.c \ ../src/file.c \ ../src/getsdir.c \ ../src/help.c \ ../src/ipc.c \ ../src/main.c \ ../src/minicom.c \ ../src/rwconf.c \ ../src/script.c \ ../src/updown.c \ ../src/windiv.c \ ../src/window.cCATALOGS = cs.gmo da.gmo de.gmo es.gmo fr.gmo fi.gmo hu.gmo ja.gmo nb.gmo pl.gmo pt_BR.gmo ro.gmo ru.gmo rw.gmo sv.gmo vi.gmo zh_TW.gmo# Makevars gets inserted here. (Don't remove this line!)# Makefile variables for PO directory in any package using GNU gettext.# Usually the message domain is the same as the package name.DOMAIN = $(PACKAGE)# These two variables depend on the location of this directory.subdir = potop_builddir = ..# These options get passed to xgettext.XGETTEXT_OPTIONS = --keyword=_ --keyword=N_# This is the copyright holder that gets inserted into the header of the# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding# package. (Note that the msgstr strings, extracted from the package's# sources, belong to the copyright holder of the package.) Translators are# expected to transfer the copyright for their translations to this person# or entity, or to disclaim their copyright. The empty string stands for# the public domain; in this case the translators are expected to disclaim# their copyright.COPYRIGHT_HOLDER = Free Software Foundation, Inc.# This is the email address or URL to which the translators shall report# bugs in the untranslated strings:# - Strings which are not entire sentences, see the maintainer guidelines# in the GNU gettext documentation, section 'Preparing Strings'.# - Strings which use unclear terms or require additional context to be# understood.# - Strings which make invalid assumptions about notation of date, time or# money.# - Pluralisation problems.# - Incorrect English spelling.# - Incorrect formatting.# It can be your email address, or a mailing list address where translators# can write to without being subscribed, or the URL of a web page through# which the translators can contact you.MSGID_BUGS_ADDRESS = minicom-devel@lists.alioth.debian.org# This is the list of locale categories, beyond LC_MESSAGES, for which the# message catalogs shall be used. It is usually empty.EXTRA_LOCALE_CATEGORIES =.SUFFIXES:.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update.po.mo: @echo "$(MSGFMT) -c -o $@ $<"; \ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@.po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo.sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@all: all-noall-yes: stamp-poall-no:# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because# we don't want to bother translators with empty POT files). We assume that# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.# In this case, stamp-po is a nop (i.e. a phony target).# stamp-po is a timestamp denoting the last time at which the CATALOGS have# been loosely updated. Its purpose is that when a developer or translator# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent# invocations of "make" will do nothing. This timestamp would not be necessary# if updating the $(CATALOGS) would always touch them; however, the rule for# $(POFILES) has been designed to not touch files that don't need to be# changed.stamp-po: $(srcdir)/$(DOMAIN).pot test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ echo "touch stamp-po" && \ echo timestamp > stamp-poT && \ mv stamp-poT stamp-po; \ }# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',# otherwise packages like GCC can not be built if only parts of the source# have been downloaded.# This target rebuilds $(DOMAIN).pot; it is an expensive operation.# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ else \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ else \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ }# This rule has no dependencies: we don't need to update $(DOMAIN).pot at# every "make" invocation, only create it when it is missing.# Only "make $(DOMAIN).pot-update" or "make dist" will force an update.$(srcdir)/$(DOMAIN).pot: $(MAKE) $(DOMAIN).pot-update# This target rebuilds a PO file if $(DOMAIN).pot has changed.# Note that a PO file is not touched if it doesn't need to be changed.$(POFILES): $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ else \ $(MAKE) $${lang}.po-create; \ fiinstall: install-exec install-datainstall-exec:install-data: install-data-no if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ for file in $(DISTFILES.common) Makevars.template; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ for file in Makevars; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fiinstall-data-no: allinstall-data-yes: all $(mkdir_p) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -