Testing tangled. Original: https://github.com/j6t/gitk

gitk: place file name arguments after options in msgfmt call

The build process fails in POSIXLY_CORRECT mode:

$ gitk@master:1005> POSIXLY_CORRECT=1 make
* new Tcl/Tk interpreter location
GEN gitk-wish
Generating catalog po/zh_cn.msg
msgfmt --statistics --tcl po/zh_cn.po -l zh_cn -d po/
msgfmt: --tcl requires a "-l locale" specification
Try 'msgfmt --help' for more information.
make: *** [Makefile:76: po/zh_cn.msg] Error 1

The reason is that option arguments cannot occur after the first
non-option argument. Move the file name last.

Reported-by: Nathan Royce <nroycea+kernel@gmail.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>

+1 -1
+1 -1
Makefile
··· 73 73 $(foreach p, $(ALL_POFILES), echo Updating $p ; msgmerge -U $p $(PO_TEMPLATE) ; ) 74 74 $(ALL_MSGFILES): %.msg : %.po 75 75 @echo Generating catalog $@ 76 - $(MSGFMT) --statistics --tcl $< -l $(basename $(notdir $<)) -d $(dir $@) 76 + $(MSGFMT) --statistics --tcl -l $(basename $(notdir $<)) -d $(dir $@) $< 77 77 78 78 .PHONY: all install uninstall clean update-po 79 79 .PHONY: FORCE