diff options
| author | Tobias Grimm <tobias@e-tobi.loc> | 2008-12-13 23:23:02 +0100 |
|---|---|---|
| committer | Tobias Grimm <tobias@e-tobi.loc> | 2008-12-13 23:23:02 +0100 |
| commit | 273db1721914d1729b41f3e4ddf08dff0ab7cee6 (patch) | |
| tree | 3a0e1b9b51d90b544897e1592bb3adaa2a61da1a /Makefile | |
| parent | c1e686a7106f3d68f0e185f94307353c30bb8cd3 (diff) | |
| download | vdr-plugin-ttxtsubs-273db1721914d1729b41f3e4ddf08dff0ab7cee6.tar.gz vdr-plugin-ttxtsubs-273db1721914d1729b41f3e4ddf08dff0ab7cee6.tar.bz2 | |
Removed location lines from *.po (thx to Rolf Ahrenberg)
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -74,25 +74,25 @@ $(DEPFILE): Makefile PODIR = po LOCALEDIR = $(VDRDIR)/locale I18Npo = $(wildcard $(PODIR)/*.po) -I18Nmo = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file)))) -I18Ndirs = $(notdir $(foreach file, $(I18Npo), $(basename $(file)))) +I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) I18Npot = $(PODIR)/$(PLUGIN).pot %.mo: %.po msgfmt -c -o $@ $< $(I18Npot): $(wildcard *.c) - xgettext -C -cTRANSLATORS --no-wrap -F -k -ktr -ktrNOOP --msgid-bugs-address='<author>' -o $@ $(wildcard *.c) + xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --msgid-bugs-address='<author>' -o $@ $^ -$(I18Npo): $(I18Npot) - msgmerge -U --no-wrap -F --backup=none -q $@ $< +%.po: $(I18Npot) + msgmerge -U --no-wrap --no-location --backup=none -q $@ $< + @touch $@ -i18n: $(I18Nmo) - @mkdir -p $(LOCALEDIR) - for i in $(I18Ndirs); do\ - mkdir -p $(LOCALEDIR)/$$i/LC_MESSAGES;\ - cp $(PODIR)/$$i.mo $(LOCALEDIR)/$$i/LC_MESSAGES/vdr-$(PLUGIN).mo;\ - done +$(I18Nmsgs): $(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo + @mkdir -p $(dir $@) + cp $< $@ + +.PHONY: i18n +i18n: $(I18Nmsgs) $(I18Npot) ### Targets: |
