diff options
| author | Franck Bui-Huu <fbuihuu@gmail.com> | 2012-02-01 06:08:19 -0500 |
|---|---|---|
| committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2012-03-03 08:40:10 -0500 |
| commit | 3827150458cfefe1fa1e536617c906367795add2 (patch) | |
| tree | 851bafb3e0c8da191fca1aed4c3cec9399cb7a42 /tools | |
| parent | cf0213fdff9c0e9392fcde925113ed965cbd1f7e (diff) | |
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>
Diffstat (limited to 'tools')
| -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 eb7f44844d5..19526054d72 100644 --- a/tools/power/cpupower/Makefile +++ b/tools/power/cpupower/Makefile | |||
| @@ -199,9 +199,7 @@ cpupower: $(UTIL_OBJS) libcpupower.so.$(LIB_MAJ) | |||
| 199 | po/$(PACKAGE).pot: $(UTIL_SRC) | 199 | po/$(PACKAGE).pot: $(UTIL_SRC) |
| 200 | $(ECHO) " GETTEXT " $@ | 200 | $(ECHO) " GETTEXT " $@ |
| 201 | $(QUIET) xgettext --default-domain=$(PACKAGE) --add-comments \ | 201 | $(QUIET) xgettext --default-domain=$(PACKAGE) --add-comments \ |
| 202 | --keyword=_ --keyword=N_ $(UTIL_SRC) && \ | 202 | --keyword=_ --keyword=N_ $(UTIL_SRC) -p $(@D) -o $(@F) |
| 203 | test -f $(PACKAGE).po && \ | ||
| 204 | mv -f $(PACKAGE).po po/$(PACKAGE).pot | ||
| 205 | 203 | ||
| 206 | po/%.gmo: po/%.po | 204 | po/%.gmo: po/%.po |
| 207 | $(ECHO) " MSGFMT " $@ | 205 | $(ECHO) " MSGFMT " $@ |
