Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpupower tool: makefile: simplify the recipe used to generate cpupower.pot target

Use the '-p' and '-o' switches to specify the pathname of the output
file to xgettext(1). This avoids to move manually the output file if
xgettext(1) succeeds.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>

authored by

Franck Bui-Huu and committed by
Dominik Brodowski
38271504 cf0213fd

+1 -3
+1 -3
tools/power/cpupower/Makefile
··· 199 199 po/$(PACKAGE).pot: $(UTIL_SRC) 200 200 $(ECHO) " GETTEXT " $@ 201 201 $(QUIET) xgettext --default-domain=$(PACKAGE) --add-comments \ 202 - --keyword=_ --keyword=N_ $(UTIL_SRC) && \ 203 - test -f $(PACKAGE).po && \ 204 - mv -f $(PACKAGE).po po/$(PACKAGE).pot 202 + --keyword=_ --keyword=N_ $(UTIL_SRC) -p $(@D) -o $(@F) 205 203 206 204 po/%.gmo: po/%.po 207 205 $(ECHO) " MSGFMT " $@