You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.5 KiB

  1. From 184422d39df1aa27e6ef4c1ae75177489147ec99 Mon Sep 17 00:00:00 2001
  2. From: Arcadiy Ivanov <arcadiy.ivanov@servicemesh.com>
  3. Date: Tue, 4 Nov 2014 07:06:13 -0500
  4. Subject: [PATCH 1/6] BUILD: fix "make install" to support spaces in the
  5. install dirs
  6. Makefile is unable to install into directories containing spaces.
  7. (cherry picked from commit 3785311e64792787de78370fa126fd806734f7fe)
  8. ---
  9. Makefile | 14 +++++++-------
  10. 1 file changed, 7 insertions(+), 7 deletions(-)
  11. diff --git a/Makefile b/Makefile
  12. index 707037b..9556069 100644
  13. --- a/Makefile
  14. +++ b/Makefile
  15. @@ -710,19 +710,19 @@ src/dlmalloc.o: $(DLMALLOC_SRC)
  16. $(CC) $(COPTS) -DDEFAULT_MMAP_THRESHOLD=$(DLMALLOC_THRES) -c -o $@ $<
  17. install-man:
  18. - install -d $(DESTDIR)$(MANDIR)/man1
  19. - install -m 644 doc/haproxy.1 $(DESTDIR)$(MANDIR)/man1
  20. + install -d "$(DESTDIR)$(MANDIR)"/man1
  21. + install -m 644 doc/haproxy.1 "$(DESTDIR)$(MANDIR)"/man1
  22. install-doc:
  23. - install -d $(DESTDIR)$(DOCDIR)
  24. + install -d "$(DESTDIR)$(DOCDIR)"
  25. for x in configuration architecture haproxy-en haproxy-fr; do \
  26. - install -m 644 doc/$$x.txt $(DESTDIR)$(DOCDIR) ; \
  27. + install -m 644 doc/$$x.txt "$(DESTDIR)$(DOCDIR)" ; \
  28. done
  29. install-bin: haproxy haproxy-systemd-wrapper
  30. - install -d $(DESTDIR)$(SBINDIR)
  31. - install haproxy $(DESTDIR)$(SBINDIR)
  32. - install haproxy-systemd-wrapper $(DESTDIR)$(SBINDIR)
  33. + install -d "$(DESTDIR)$(SBINDIR)"
  34. + install haproxy "$(DESTDIR)$(SBINDIR)"
  35. + install haproxy-systemd-wrapper "$(DESTDIR)$(SBINDIR)"
  36. install: install-bin install-man install-doc
  37. --
  38. 2.0.4