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:
parent
62de7cc750
commit
b9c5bc5536
@ -19,6 +19,7 @@ ifdef MAKE_COLOR
|
|||||||
INFO_COLOR = $(shell tput setaf 5)
|
INFO_COLOR = $(shell tput setaf 5)
|
||||||
CC_COLOR = $(shell tput setaf 6)
|
CC_COLOR = $(shell tput setaf 6)
|
||||||
LD_COLOR = $(shell tput setaf 2)
|
LD_COLOR = $(shell tput setaf 2)
|
||||||
|
PO_COLOR = $(shell tput setaf 6)
|
||||||
LINK_COLOR = $(shell tput bold;tput setaf 4)
|
LINK_COLOR = $(shell tput bold;tput setaf 4)
|
||||||
INSTALL_COLOR = $(shell tput setaf 3)
|
INSTALL_COLOR = $(shell tput setaf 3)
|
||||||
END_COLOR = $(shell tput sgr0)
|
END_COLOR = $(shell tput sgr0)
|
||||||
@ -29,6 +30,7 @@ endif
|
|||||||
ncmd = $(if $($(quiet)cmd_$(1)),echo $($(quiet)cmd_$(1)) &&) $(cmd_$(1))
|
ncmd = $(if $($(quiet)cmd_$(1)),echo $($(quiet)cmd_$(1)) &&) $(cmd_$(1))
|
||||||
cmd = @$(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))
|
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)$@'
|
quiet_cmd_compile = ' [$(CC_COLOR)CC$(END_COLOR)] $(RELPATH)$@'
|
||||||
masq_cmd_compile = $(COMPILE) -c $<
|
masq_cmd_compile = $(COMPILE) -c $<
|
||||||
|
@ -11,14 +11,16 @@ MSGMERGE = msgmerge
|
|||||||
# xgettext)
|
# xgettext)
|
||||||
POTFILES_ABS_LIST = potfiles.list
|
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
|
# Distributed elinks-*.tar.gz packages include po/*.gmo files, so that
|
||||||
# users can install ELinks even if they don't have a msgfmt program.
|
# users can install ELinks even if they don't have a msgfmt program.
|
||||||
# However, if srcdir != builddir, then this Makefile ignores the *.gmo
|
# However, if srcdir != builddir, then this Makefile ignores the *.gmo
|
||||||
# files in the srcdir and builds new ones in the builddir.
|
# files in the srcdir and builds new ones in the builddir.
|
||||||
%.gmo: $(srcdir)/%.po
|
%.gmo: $(srcdir)%.po
|
||||||
@rm -f -- "$@" && printf "%s: " "$*" \
|
$(call ecmd,gmsgfmt)
|
||||||
&& $(GMSGFMT) --statistics -o "$@" -- "$<"
|
|
||||||
|
|
||||||
|
|
||||||
### The default rule
|
### The default rule
|
||||||
|
Loading…
Reference in New Issue
Block a user