Skip to contentSkip to conversation

contrib/plugins/Makefile: Add a 'distclean' target

PATCH Applied Thomas Huth 3 participants 3 messages Sep 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 contrib/plugins/Makefile: Add a 'distclean' target

Running "make distclean" in the build tree currently fails since this tries to run the "distclean" target in the contrib/plugins/ folder, too, but the Makefile there is missing this target. Thus add 'distclean' there to fix this issue.

And to avoid regressions with "make distclean", add this command to one of the build jobs, too.

---
 .gitlab-ci.d/buildtest.yml | 2 ++
 contrib/plugins/Makefile   | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
.gitlab-ci.d/buildtest.yml +2 -0
index aa32782405..0c624813cf 100644
@@ -345,6 +345,8 @@ build-tcg-disabled:
             124 132 139 142 144 145 151 152 155 157 165 194 196 200 202
             208 209 216 218 227 234 246 247 248 250 254 255 257 258
             260 261 262 263 264 270 272 273 277 279 image-fleecing
+    - cd ../..
+    - make distclean
 
 build-user:
   extends: .native_build_job_template
contrib/plugins/Makefile +1 -1
index edf256cd9d..05a2a45c5c 100644
@@ -77,7 +77,7 @@ lib%$(SO_SUFFIX): %.o
 endif
 
 
-clean:
+clean distclean:
 	rm -f *.o *$(SO_SUFFIX) *.d
 	rm -Rf .libs
 
Signature · 1 line
2.46.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 32 lines · Thomas Huth

Running "make distclean" in the build tree currently fails since this tries to run the "distclean" target in the contrib/plugins/ folder, too, but the Makefile there is missing this target. Thus add 'distclean' there to fix this issue.

And to avoid regressions with "make distclean", add this command to one of the build jobs, too.

---
  .gitlab-ci.d/buildtest.yml | 2 ++
  contrib/plugins/Makefile   | 2 +-
  2 files changed, 3 insertions(+), 1 deletion(-)
.gitlab-ci.d/buildtest.yml +2 -0
index aa32782405..0c624813cf 100644
@@ -345,6 +345,8 @@ build-tcg-disabled:
              124 132 139 142 144 145 151 152 155 157 165 194 196 200 202
              208 209 216 218 227 234 246 247 248 250 254 255 257 258
              260 261 262 263 264 270 272 273 277 279 image-fleecing
+    - cd ../..
+    - make distclean
 
  build-user:
    extends: .native_build_job_template
contrib/plugins/Makefile +0 -0
index edf256cd9d..05a2a45c5c 100644

contrib/plugins/Makefile lib%$(SO_SUFFIX): %.o · line 83

Quoted 8 lines
contrib/plugins/Makefile +1 -1
@@ -77,7 +77,7 @@ lib%$(SO_SUFFIX): %.o
  endif
 
 
-clean:
+clean distclean:
  	rm -f *.o *$(SO_SUFFIX) *.d
  	rm -Rf .libs
 
Applied
#2 lore raw
In reply to Thomas Huth
Quoted 7 lines · Thomas Huth

Running "make distclean" in the build tree currently fails since this tries to run the "distclean" target in the contrib/plugins/ folder, too, but the Makefile there is missing this target. Thus add 'distclean' there to fix this issue.

And to avoid regressions with "make distclean", add this command to one of the build jobs, too.

Queued to plugins/next, thanks.

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro