Skip to contentSkip to conversation

Makefile: Remove generated hw/usb files in 'clean' target

PATCH In review Stefan Weil 3 participants 4 messages Jul 29, 2012 – Jul 31, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: Remove generated hw/usb files in 'clean' target

Commit f1ae32a1ecda8aaff7a355c9030c0d8c363f3a70 moved the usb directory to hw, so the files which should be removed are now hw/usb/*.{d,o}.

The new code removes these files and also any other generated *.o and *.d files in directories below hw.

---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index e4c754d..30f9e91 100644
@@ -215,7 +215,7 @@ clean:
 	rm -Rf .libs
 	rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d fsdev/*.o fsdev/*.d ui/*.o ui/*.d qapi/*.o qapi/*.d qga/*.o qga/*.d
 	rm -f qom/*.o qom/*.d
-	rm -f usb/*.o usb/*.d hw/*.o hw/*.d
+	rm -f hw/*/*.o hw/*/*.d hw/*.o hw/*.d
 	rm -f qemu-img-cmds.h
 	rm -f trace/*.o trace/*.d
 	rm -f trace-dtrace.dtrace trace-dtrace.dtrace-timestamp
Signature · 1 line
1.7.10
#1 lore raw
Quoted 27 lines · Stefan Weil

Commit f1ae32a1ecda8aaff7a355c9030c0d8c363f3a70 moved the usb directory to hw, so the files which should be removed are now hw/usb/*.{d,o}.

The new code removes these files and also any other generated *.o and *.d files in directories below hw.

---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index e4c754d..30f9e91 100644
@@ -215,7 +215,7 @@ clean:
 	rm -Rf .libs
 	rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d fsdev/*.o fsdev/*.d ui/*.o ui/*.d qapi/*.o qapi/*.d qga/*.o qga/*.d
 	rm -f qom/*.o qom/*.d
-	rm -f usb/*.o usb/*.d hw/*.o hw/*.d
+	rm -f hw/*/*.o hw/*/*.d hw/*.o hw/*.d
 	rm -f qemu-img-cmds.h
 	rm -f trace/*.o trace/*.d
 	rm -f trace-dtrace.dtrace trace-dtrace.dtrace-timestamp
Signature · 1 line
1.7.10

Thanks. Jan Kiszka already submitted an equivalent patch which I have merged. He used hw/usb/*.o hw/usb/*.d instead of hw/*/....

Stefan

#2 lore raw
Quoted 23 lines · Stefan Hajnoczi
Quoted 22 lines · Stefan Weil

Commit f1ae32a1ecda8aaff7a355c9030c0d8c363f3a70 moved the usb directory to hw, so the files which should be removed are now hw/usb/*.{d,o}.

The new code removes these files and also any other generated *.o and *.d files in directories below hw.

---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index e4c754d..30f9e91 100644
@@ -215,7 +215,7 @@ clean:
      rm -Rf .libs
      rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d fsdev/*.o fsdev/*.d ui/*.o ui/*.d qapi/*.o qapi/*.d qga/*.o qga/*.d
      rm -f qom/*.o qom/*.d
-     rm -f usb/*.o usb/*.d hw/*.o hw/*.d
+     rm -f hw/*/*.o hw/*/*.d hw/*.o hw/*.d
Quoted 8 lines
Quoted 5 lines
Makefile +0 -1
      rm -f qemu-img-cmds.h
      rm -f trace/*.o trace/*.d
      rm -f trace-dtrace.dtrace trace-dtrace.dtrace-timestamp
--

1.7.10

Thanks. Jan Kiszka already submitted an equivalent patch which I have merged. He used hw/usb/*.o hw/usb/*.d instead of hw/*/....

We should probably just use

        rm -f $(shell find . -name '*.[od]')

for consistency with Makefile.target and future proofing anyway...

-- PMM

#3 lore raw
Quoted 33 lines · Peter Maydell
Quoted 23 lines · Stefan Hajnoczi
Quoted 22 lines · Stefan Weil

Commit f1ae32a1ecda8aaff7a355c9030c0d8c363f3a70 moved the usb directory to hw, so the files which should be removed are now hw/usb/*.{d,o}.

The new code removes these files and also any other generated *.o and *.d files in directories below hw.

---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index e4c754d..30f9e91 100644
@@ -215,7 +215,7 @@ clean:
      rm -Rf .libs
      rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d fsdev/*.o fsdev/*.d ui/*.o ui/*.d qapi/*.o qapi/*.d qga/*.o qga/*.d
      rm -f qom/*.o qom/*.d
-     rm -f usb/*.o usb/*.d hw/*.o hw/*.d
+     rm -f hw/*/*.o hw/*/*.d hw/*.o hw/*.d
Quoted 8 lines
Quoted 5 lines
Makefile +0 -1
      rm -f qemu-img-cmds.h
      rm -f trace/*.o trace/*.d
      rm -f trace-dtrace.dtrace trace-dtrace.dtrace-timestamp
--

1.7.10

Thanks. Jan Kiszka already submitted an equivalent patch which I have merged. He used hw/usb/*.o hw/usb/*.d instead of hw/*/....

Quoted 4 lines

We should probably just use

        rm -f $(shell find . -name '*.[od]')

for consistency with Makefile.target and future proofing anyway...

Cool, want to submit a patch? :)

Stefan