From b83a6abe01664245a2319c58b02063ba924fe912 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Mon, 21 Jan 2019 22:28:14 +0100 Subject: Configure/make: Quote variables that may contain spaces This allows installing FLTK to directories that contain spaces. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 41e1121f1..d4115d3a0 100644 --- a/Makefile +++ b/Makefile @@ -31,9 +31,9 @@ test: all (cd test; $(MAKE) $(MFLAGS)) || exit 1 install: makeinclude - -mkdir -p $(DESTDIR)$(bindir) - $(RM) $(DESTDIR)$(bindir)/fltk-config - $(INSTALL_SCRIPT) fltk-config $(DESTDIR)$(bindir) + -mkdir -p "$(DESTDIR)$(bindir)" + $(RM) "$(DESTDIR)$(bindir)/fltk-config" + $(INSTALL_SCRIPT) fltk-config "$(DESTDIR)$(bindir)" for dir in FL $(DIRS); do\ echo "=== installing $$dir ===";\ (cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\ @@ -46,7 +46,7 @@ install-desktop: makeinclude cd test; $(MAKE) $(MFLAGS) $(INSTALL_DESKTOP) uninstall: makeinclude - $(RM) $(DESTDIR)$(bindir)/fltk-config + $(RM) "$(DESTDIR)$(bindir)/fltk-config" for dir in FL $(DIRS); do\ echo "=== uninstalling $$dir ===";\ (cd $$dir; $(MAKE) $(MFLAGS) uninstall) || exit 1;\ -- cgit v1.2.3