Commit 38271504 authored by Franck Bui-Huu's avatar Franck Bui-Huu Committed by Dominik Brodowski
Browse files

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: default avatarFranck Bui-Huu <>
Signed-off-by: default avatarDominik Brodowski <>
parent cf0213fd
...@@ -199,9 +199,7 @@ cpupower: $(UTIL_OBJS)$(LIB_MAJ) ...@@ -199,9 +199,7 @@ cpupower: $(UTIL_OBJS)$(LIB_MAJ)
po/$(PACKAGE).pot: $(UTIL_SRC) po/$(PACKAGE).pot: $(UTIL_SRC)
$(ECHO) " GETTEXT " $@ $(ECHO) " GETTEXT " $@
$(QUIET) xgettext --default-domain=$(PACKAGE) --add-comments \ $(QUIET) xgettext --default-domain=$(PACKAGE) --add-comments \
--keyword=_ --keyword=N_ $(UTIL_SRC) && \ --keyword=_ --keyword=N_ $(UTIL_SRC) -p $(@D) -o $(@F)
test -f $(PACKAGE).po && \
mv -f $(PACKAGE).po po/$(PACKAGE).pot
po/ po/%.po po/ po/%.po
$(ECHO) " MSGFMT " $@ $(ECHO) " MSGFMT " $@
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment