Skip to content

Commit 8c00bdf

Browse files
Palmer Coxrafaeljw
authored andcommitted
cpupower tools: Remove brace expansion from clean target
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 <p@lmercox.com> Signed-off-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 9489e9d commit 8c00bdf

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎tools/power/cpupower/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ clean:
253253
| xargs rm -f
254254
-rm -f $(OUTPUT)cpupower
255255
-rm -f $(OUTPUT)libcpupower.so*
256-
-rm -rf $(OUTPUT)po/*.{gmo,pot}
256+
-rm -rf $(OUTPUT)po/*.gmo
257+
-rm -rf $(OUTPUT)po/*.pot
257258
$(MAKE) -C bench O=$(OUTPUT) clean
258259

259260

‎tools/power/cpupower/debug/i386/Makefile‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ $(OUTPUT)powernow-k8-decode: powernow-k8-decode.c
2626
all: $(OUTPUT)centrino-decode $(OUTPUT)dump_psb $(OUTPUT)intel_gsic $(OUTPUT)powernow-k8-decode
2727

2828
clean:
29-
rm -rf $(OUTPUT){centrino-decode,dump_psb,intel_gsic,powernow-k8-decode}
29+
rm -rf $(OUTPUT)centrino-decode
30+
rm -rf $(OUTPUT)dump_psb
31+
rm -rf $(OUTPUT)intel_gsic
32+
rm -rf $(OUTPUT)powernow-k8-decode
3033

3134
install:
3235
$(INSTALL) -d $(DESTDIR)${bindir}

0 commit comments

Comments
 (0)