Skip to content

Commit 3827150

Browse files
fbuihuuDominik Brodowski
authored andcommitted
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>
1 parent cf0213f commit 3827150

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎tools/power/cpupower/Makefile‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,7 @@ cpupower: $(UTIL_OBJS) libcpupower.so.$(LIB_MAJ)
199199
po/$(PACKAGE).pot: $(UTIL_SRC)
200200
$(ECHO) " GETTEXT " $@
201201
$(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)
205203

206204
po/%.gmo: po/%.po
207205
$(ECHO) " MSGFMT " $@

0 commit comments

Comments
 (0)