From: Arcadiy Ivanov Date: Tue, 4 Nov 2014 12:06:13 +0000 (-0500) Subject: BUILD: fix "make install" to support spaces in the install dirs X-Git-Tag: v1.6-dev1~279 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3785311e64792787de78370fa126fd806734f7fe;p=thirdparty%2Fhaproxy.git BUILD: fix "make install" to support spaces in the install dirs Makefile is unable to install into directories containing spaces. --- diff --git a/Makefile b/Makefile index 0d1d13a2e2..ac93fed74e 100644 --- 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