]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: fix "make install" to support spaces in the install dirs
authorArcadiy Ivanov <arcadiy.ivanov@servicemesh.com>
Tue, 4 Nov 2014 12:06:13 +0000 (07:06 -0500)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 Nov 2014 11:03:03 +0000 (12:03 +0100)
Makefile is unable to install into directories containing spaces.

Makefile

index 0d1d13a2e2065b2dc571e03cec2959ab9bd7fa85..ac93fed74e869734826f6bb33d79e0d46563cad6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -710,19 +710,19 @@ src/dlmalloc.o: $(DLMALLOC_SRC)
        $(CC) $(COPTS) -DDEFAULT_MMAP_THRESHOLD=$(DLMALLOC_THRES) -c -o $@ $<
 
 install-man:
-       install -d $(DESTDIR)$(MANDIR)/man1
-       install -m 644 doc/haproxy.1 $(DESTDIR)$(MANDIR)/man1
+       install -d "$(DESTDIR)$(MANDIR)"/man1
+       install -m 644 doc/haproxy.1 "$(DESTDIR)$(MANDIR)"/man1
 
 install-doc:
-       install -d $(DESTDIR)$(DOCDIR)
+       install -d "$(DESTDIR)$(DOCDIR)"
        for x in configuration architecture haproxy-en haproxy-fr; do \
-               install -m 644 doc/$$x.txt $(DESTDIR)$(DOCDIR) ; \
+               install -m 644 doc/$$x.txt "$(DESTDIR)$(DOCDIR)" ; \
        done
 
 install-bin: haproxy haproxy-systemd-wrapper
-       install -d $(DESTDIR)$(SBINDIR)
-       install haproxy $(DESTDIR)$(SBINDIR)
-       install haproxy-systemd-wrapper $(DESTDIR)$(SBINDIR)
+       install -d "$(DESTDIR)$(SBINDIR)"
+       install haproxy "$(DESTDIR)$(SBINDIR)"
+       install haproxy-systemd-wrapper "$(DESTDIR)$(SBINDIR)"
 
 install: install-bin install-man install-doc