📄 makefile
字号:
# Makefile for PO directory in any package using GNU gettext.# Copyright (C) 1995-1997, 2000-2004 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.14PACKAGE = madplayVERSION = 0.15.2bSHELL = /bin/shsrcdir = .top_srcdir = ..prefix = /home/cjfeng/app2.6/mips-linuxexec_prefix = ${prefix}datadir = ${prefix}/sharelocaledir = $(datadir)/localegettextsrcdir = $(datadir)/gettext/poINSTALL = /usr/bin/install -cINSTALL_DATA = ${INSTALL} -m 644MKINSTALLDIRS = $(top_builddir)/./mkinstalldirsmkinstalldirs = $(SHELL) $(MKINSTALLDIRS)GMSGFMT = /usr/bin/msgfmtMSGFMT = /usr/bin/msgfmtXGETTEXT = /usr/bin/xgettextMSGMERGE = msgmergeMSGMERGE_UPDATE = /usr/bin/msgmerge --updateMSGINIT = msginitMSGCONV = msgconvMSGFILTER = msgfilterPOFILES = en.po es.po fr.po hr.po no.poGMOFILES = en.gmo es.gmo fr.gmo hr.gmo no.gmoUPDATEPOFILES = en.po-update es.po-update fr.po-update hr.po-update no.po-updateDUMMYPOFILES = en.nop es.nop fr.nop hr.nop no.nopDISTFILES.common = Makefile.in.in remove-potcdate.sin \$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)DISTFILES = $(DISTFILES.common) Makevars POTFILES.in $(DOMAIN).pot stamp-po \$(POFILES) $(GMOFILES) \$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)POTFILES = \ ../audio_carbon.c \ ../audio_esd.c \ ../audio_jaguar.c \ ../audio_nas.c \ ../audio_oss.c \ ../audio_qnx.c \ ../audio_sun.c \ ../audio_win32.c \ ../getopt.c \ ../madtag.c \ ../madmix.c \ ../madplay.c \ ../madtime.c \ ../rgain.c \ ../player.c \ ../version.cCATALOGS = en.gmo es.gmo fr.gmo hr.gmo no.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 = Robert Leslie# 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 = rob@mars.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-yesall-yes: stamp-poall-no:# 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 -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @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 $(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-yes if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkinstalldirs) $(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 $(mkinstalldirs) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkinstalldirs) $(DESTDIR)$$dir; \ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -