]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: make clean fixups 4501/head
authorJason Ish <jason.ish@oisf.net>
Fri, 24 Jan 2020 18:27:27 +0000 (12:27 -0600)
committerJason Ish <jason.ish@oisf.net>
Fri, 24 Jan 2020 18:59:56 +0000 (12:59 -0600)
For make clean, only remove gen/ if cbindgen is available.
This prevents make clean from remove gen when the headers
were bundled, but cbindgen is not available to remove them.

Unconditionally remove gen and vendor in maintainerclean.

rust/Makefile.am

index f9fff8ffab9bed3b4292ceddb75866f8c41d27df..158d348b723dfe9830ff337e4063a88cea3ddd4a 100644 (file)
@@ -43,10 +43,16 @@ else
 endif
 
 clean-local:
-       -rm -rf target gen
+       rm -rf target
+if HAVE_CBINDGEN
+       rm -rf gen
+endif
+
+distclean-local:
+       rm -f Cargo.lock
 
-distclean-local: clean-local
-       rm -rf vendor gen Cargo.lock
+maintainerclean-local:
+       rm -rf vendor gen
 
 check:
        CARGO_HOME="$(CARGO_HOME)" @rustup_home@ \