Skip to content

Commit

Permalink
cpupower tool: makefile: simplify the recipe used to generate cpupowe…
Browse files Browse the repository at this point in the history
…r.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 <[email protected]>
Signed-off-by: Dominik Brodowski <[email protected]>
  • Loading branch information
fbuihuu authored and Dominik Brodowski committed Mar 3, 2012
1 parent cf0213f commit 3827150
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/power/cpupower/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 " $@
Expand Down

0 comments on commit 3827150

Please sign in to comment.