diff options
author | Franck Bui-Huu <fbuihuu@gmail.com> | 2012-02-01 12:08:19 +0100 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2012-03-03 14:40:10 +0100 |
commit | 3827150458cfefe1fa1e536617c906367795add2 (patch) | |
tree | 851bafb3e0c8da191fca1aed4c3cec9399cb7a42 | |
parent | cf0213fdff9c0e9392fcde925113ed965cbd1f7e (diff) | |
download | op-kernel-dev-3827150458cfefe1fa1e536617c906367795add2.zip op-kernel-dev-3827150458cfefe1fa1e536617c906367795add2.tar.gz |
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>
-rw-r--r-- | tools/power/cpupower/Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile index eb7f448..1952605 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 " $@ |