summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlbrecht Schlosser <fltk@aljus.de>2024-08-10 16:51:36 +0200
committerGitHub <noreply@github.com>2024-08-10 16:51:36 +0200
commit85e08b981e6a9833c37f3ecaca2ac98739cf3b65 (patch)
treed9b75e169cba52583b7dcc5cd4b88ee1efb73145 /Makefile
parent02a208b928b46a4c6d305497552517bc39cbb0ba (diff)
parentac8724502f889d8153193add66a2c88bbed99d0d (diff)
Merge pull request #17 from mid-kid/patch-1
Quote variables that may contain spaces (#17)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
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;\