]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: fix build when source directory has spaces in it
authorJason Ish <jason.ish@oisf.net>
Fri, 20 Sep 2019 21:58:53 +0000 (15:58 -0600)
committerJason Ish <jason.ish@oisf.net>
Thu, 10 Oct 2019 17:31:21 +0000 (11:31 -0600)
Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2668

rust/Makefile.am

index c7482fcb851c5b8f3662085c45d91d6cfab0eb22..3e7ec2eebcaf635ef9d735f614c89d98653492a4 100644 (file)
@@ -34,14 +34,14 @@ endif
 if HAVE_CYGPATH
        rustpath=`cygpath -a -t mixed $(abs_top_builddir)`
        cd $(top_srcdir)/rust && \
-               CARGO_HOME=$(CARGO_HOME) \
+               CARGO_HOME="$(CARGO_HOME)" \
                CARGO_TARGET_DIR="$$rustpath/rust/target" \
                $(CARGO) build $(RELEASE) $(FROZEN) \
                        --features "$(RUST_FEATURES)"
 else
        cd $(top_srcdir)/rust && \
-               CARGO_HOME=$(CARGO_HOME) \
-               CARGO_TARGET_DIR=$(abs_top_builddir)/rust/target \
+               CARGO_HOME="$(CARGO_HOME)" \
+               CARGO_TARGET_DIR="$(abs_top_builddir)/rust/target" \
                $(CARGO) build $(RELEASE) $(FROZEN) \
                        --features "$(RUST_FEATURES)"
 endif
@@ -53,14 +53,14 @@ distclean-local: clean-local
        rm -rf vendor gen Cargo.lock
 
 check:
-       CARGO_HOME=$(CARGO_HOME) $(CARGO) test
+       CARGO_HOME="$(CARGO_HOME)" $(CARGO) test
 
 Cargo.lock: Cargo.toml
-       CARGO_HOME=$(CARGO_HOME) $(CARGO) generate-lockfile
+       CARGO_HOME="$(CARGO_HOME)" $(CARGO) generate-lockfile
 
 if HAVE_CARGO_VENDOR
 vendor:
-       CARGO_HOME=$(CARGO_HOME) $(CARGO) vendor > /dev/null
+       CARGO_HOME="$(CARGO_HOME)" $(CARGO) vendor > /dev/null
 else
 vendor:
 endif