From 3827150458cfefe1fa1e536617c906367795add2 Mon Sep 17 00:00:00 2001 From: Franck Bui-Huu Date: Wed, 1 Feb 2012 12:08:19 +0100 Subject: 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 Signed-off-by: Dominik Brodowski --- tools/power/cpupower/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tools/power') diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile index eb7f44844d5a..19526054d721 100644 --- a/tools/power/cpupower/Makefile +++ b/tools/power/cpupower/Makefile @@ -199,9 +199,7 @@ cpupower: $(UTIL_OBJS) libcpupower.so.$(LIB_MAJ) po/$(PACKAGE).pot: $(UTIL_SRC) $(ECHO) " GETTEXT " $@ $(QUIET) xgettext --default-domain=$(PACKAGE) --add-comments \ - --keyword=_ --keyword=N_ $(UTIL_SRC) && \ - test -f $(PACKAGE).po && \ - mv -f $(PACKAGE).po po/$(PACKAGE).pot + --keyword=_ --keyword=N_ $(UTIL_SRC) -p $(@D) -o $(@F) po/%.gmo: po/%.po $(ECHO) " MSGFMT " $@ -- cgit v1.2.3