]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust/Makefile: cleanup "clean" targets
authorJason Ish <jason.ish@oisf.net>
Mon, 15 Apr 2024 16:16:31 +0000 (10:16 -0600)
committerJason Ish <jason.ish@oisf.net>
Mon, 27 May 2024 22:44:54 +0000 (16:44 -0600)
Remove maintainer-clean-local, this is not needed.

In distclean-local, remove "rust/dist" and "rust/vendor" as they are
created during "make dist".

In "clean-local", remove "rust/target" and "rust/gen" as they are
created during a normal "make".

rust/Makefile.am

index 410dab7609b2b962e1a91628672e305c0d3d64fb..30e4803b3a30e3be8cc241bbb3ef9f23c948fe3e 100644 (file)
@@ -69,16 +69,10 @@ uninstall-local:
        rm -f "$(DESTDIR)$(libdir)/$(RUST_SURICATA_LIBNAME)"
 
 clean-local:
-       rm -rf target
-if HAVE_CBINDGEN
-       rm -rf gen dist
-endif
+       rm -rf target gen
 
 distclean-local:
-       rm -f Cargo.lock
-
-maintainer-clean-local:
-       rm -rf vendor gen
+       rm -rf vendor dist
 
 check:
        cd $(abs_top_srcdir)/rust && \