1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Make building of .gmo files use the new build system

It now shows:
	[GMSGFMT]   po/da.gmo      1538 translated messages, ...
This commit is contained in:
Jonas Fonseca 2005-12-26 19:17:47 +01:00 committed by Jonas Fonseca
parent 62de7cc750
commit b9c5bc5536
2 changed files with 7 additions and 3 deletions

View File

@ -19,6 +19,7 @@ ifdef MAKE_COLOR
INFO_COLOR = $(shell tput setaf 5)
CC_COLOR = $(shell tput setaf 6)
LD_COLOR = $(shell tput setaf 2)
PO_COLOR = $(shell tput setaf 6)
LINK_COLOR = $(shell tput bold;tput setaf 4)
INSTALL_COLOR = $(shell tput setaf 3)
END_COLOR = $(shell tput sgr0)
@ -29,6 +30,7 @@ endif
ncmd = $(if $($(quiet)cmd_$(1)),echo $($(quiet)cmd_$(1)) &&) $(cmd_$(1))
cmd = @$(if $($(quiet)cmd_$(1)),echo $($(quiet)cmd_$(1)) &&) $(cmd_$(1))
mcmd = @$(if $($(mquiet)cmd_$(1)),echo $($(mquiet)cmd_$(1)) &&) $(cmd_$(1))
ecmd = @$(if $($(mquiet)cmd_$(1)),printf "%-38s " $($(mquiet)cmd_$(1)) &&) $(cmd_$(1))
quiet_cmd_compile = ' [$(CC_COLOR)CC$(END_COLOR)] $(RELPATH)$@'
masq_cmd_compile = $(COMPILE) -c $<

View File

@ -11,14 +11,16 @@ MSGMERGE = msgmerge
# xgettext)
POTFILES_ABS_LIST = potfiles.list
quiet_cmd_gmsgfmt = ' [$(PO_COLOR)GMSGFMT$(END_COLOR)] $(RELPATH)$(@)'
cmd_gmsgfmt = rm -f -- "$@" && $(GMSGFMT) --statistics -o "$@" -- "$<"
# Distributed elinks-*.tar.gz packages include po/*.gmo files, so that
# users can install ELinks even if they don't have a msgfmt program.
# However, if srcdir != builddir, then this Makefile ignores the *.gmo
# files in the srcdir and builds new ones in the builddir.
%.gmo: $(srcdir)/%.po
@rm -f -- "$@" && printf "%s: " "$*" \
&& $(GMSGFMT) --statistics -o "$@" -- "$<"
%.gmo: $(srcdir)%.po
$(call ecmd,gmsgfmt)
### The default rule