Skip to contentSkip to conversation

perf: Remove brace expansion from clean target

PATCH In review Palmer Cox 1 participant 2 messages Jul 29, 2012 – Aug 5, 2012 perf events

lore
Share & tools
lore

Palmer Cox

author
#0 lore raw

PATCH 1/1 perf: Remove brace expansion from clean target

The clean target uses 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.

---
 tools/perf/Makefile |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/perf/Makefile +2 -1
index 75d74e5..842cf67 100644
@@ -979,7 +979,8 @@ clean:
 	$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo $(OUTPUT)common-cmds.h TAGS tags cscope*
 	$(MAKE) -C Documentation/ clean
 	$(RM) $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)PERF-CFLAGS
-	$(RM) $(OUTPUT)util/*-{bison,flex}*
+	$(RM) $(OUTPUT)util/*-bison*
+	$(RM) $(OUTPUT)util/*-flex*
 	$(python-clean)
 
 .PHONY: all install clean strip $(LIBTRACEEVENT)
Signature · 1 line
1.7.9.5
#1 lore raw

[tip:perf/urgent] perf tools: Remove brace expansion from clean target

Commit-ID:  7f309ed6453926a81e2a97d274f67f1e48f0d74c
Gitweb:     http://git.kernel.org/tip/7f309ed6453926a81e2a97d274f67f1e48f0d74c
Author:     Palmer Cox <[email protected]>
AuthorDate: Sun, 29 Jul 2012 17:54:43 -0400
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Fri, 3 Aug 2012 10:46:32 -0300

perf tools: Remove brace expansion from clean target

The clean target uses 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.

---
 tools/perf/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
tools/perf/Makefile +2 -1
index 32912af..35655c3 100644
@@ -987,7 +987,8 @@ clean:
 	$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo $(OUTPUT)common-cmds.h TAGS tags cscope*
 	$(MAKE) -C Documentation/ clean
 	$(RM) $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)PERF-CFLAGS
-	$(RM) $(OUTPUT)util/*-{bison,flex}*
+	$(RM) $(OUTPUT)util/*-bison*
+	$(RM) $(OUTPUT)util/*-flex*
 	$(python-clean)
 
 .PHONY: all install clean strip $(LIBTRACEEVENT)