Skip to content

Commit

Permalink
cpupower tools: Remove brace expansion from clean target
Browse files Browse the repository at this point in the history
The clean targets from the cpupower tools' Makefiles use brace expansion to
remove some generated files. However, the default shells on many systems do
not support this feature resulting in some generated files not being removed
by clean.

Signed-off-by: Palmer Cox <[email protected]>
Signed-off-by: Thomas Renninger <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
Palmer Cox authored and rafaeljw committed Nov 27, 2012
1 parent 9489e9d commit 8c00bdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tools/power/cpupower/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ clean:
| xargs rm -f
-rm -f $(OUTPUT)cpupower
-rm -f $(OUTPUT)libcpupower.so*
-rm -rf $(OUTPUT)po/*.{gmo,pot}
-rm -rf $(OUTPUT)po/*.gmo
-rm -rf $(OUTPUT)po/*.pot
$(MAKE) -C bench O=$(OUTPUT) clean


Expand Down
5 changes: 4 additions & 1 deletion tools/power/cpupower/debug/i386/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ $(OUTPUT)powernow-k8-decode: powernow-k8-decode.c
all: $(OUTPUT)centrino-decode $(OUTPUT)dump_psb $(OUTPUT)intel_gsic $(OUTPUT)powernow-k8-decode

clean:
rm -rf $(OUTPUT){centrino-decode,dump_psb,intel_gsic,powernow-k8-decode}
rm -rf $(OUTPUT)centrino-decode
rm -rf $(OUTPUT)dump_psb
rm -rf $(OUTPUT)intel_gsic
rm -rf $(OUTPUT)powernow-k8-decode

install:
$(INSTALL) -d $(DESTDIR)${bindir}
Expand Down

0 comments on commit 8c00bdf

Please sign in to comment.