[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding address@hidden fails
From: |
Bruno Haible |
Subject: |
Re: Adding address@hidden fails |
Date: |
Fri, 16 Jan 2004 16:38:43 +0100 |
User-agent: |
KMail/1.5 |
Simon Josefsson wrote:
> But address@hidden does not exist?
OK, I hope to understand now what you mean. This patch should do it.
Bruno
*** Makefile.in.in 16 Nov 2003 15:30:02 -0000 1.8
--- Makefile.in.in 16 Jan 2004 15:39:27 -0000
***************
*** 57,63 ****
# Makevars gets inserted here. (Don't remove this line!)
.SUFFIXES:
! .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-update
.po.mo:
@echo "$(MSGFMT) -c -o $@ $<"; \
--- 57,63 ----
# Makevars gets inserted here. (Don't remove this line!)
.SUFFIXES:
! .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
.po.mo:
@echo "$(MSGFMT) -c -o $@ $<"; \
***************
*** 130,139 ****
# 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$$//'`; \
! test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
! echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
! cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot
!
install: install-exec install-data
install-exec:
--- 130,142 ----
# 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; \
! fi
install: install-exec install-data
install-exec:
***************
*** 311,316 ****
--- 314,326 ----
$(MAKE) $(DOMAIN).pot-update
test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
$(MAKE) update-gmo
+
+ # General rule for creating PO files.
+
+ .nop.po-create:
+ @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
+ echo "File $$lang.po does not exist. If you are a translator, you can
create it through 'msginit'." 1>&2; \
+ exit 1
# General rule for updating PO files.
*** Rules-quot 14 Feb 2003 13:46:06 -0000 1.1
--- Rules-quot 16 Jan 2004 15:39:27 -0000
***************
*** 4,9 ****
--- 4,14 ----
.SUFFIXES: .insert-header .po-update-en
+ address@hidden:
+ $(MAKE) address@hidden
+ address@hidden:
+ $(MAKE) address@hidden
+
address@hidden: address@hidden
address@hidden: address@hidden