build: chg build was failing when the base directory contained spaces
authormuxator <a.mux@inwind.it>
Wed, 11 Oct 2017 02:06:12 +0200
changeset 34624 884855ce5e63
parent 34623 baa522889540
child 34625 f1c2552c2de7
build: chg build was failing when the base directory contained spaces
contrib/chg/Makefile
--- a/contrib/chg/Makefile	Wed Oct 11 01:37:43 2017 +0200
+++ b/contrib/chg/Makefile	Wed Oct 11 02:06:12 2017 +0200
@@ -31,15 +31,15 @@
 
 .PHONY: install
 install: $(TARGET)
-	install -d $(DESTDIR)$(PREFIX)/bin
-	install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin
-	install -d $(DESTDIR)$(MANDIR)
-	install -m 644 chg.1 $(DESTDIR)$(MANDIR)
+	install -d "$(DESTDIR)$(PREFIX)"/bin
+	install -m 755 "$(TARGET)" "$(DESTDIR)$(PREFIX)"/bin
+	install -d "$(DESTDIR)$(MANDIR)"
+	install -m 644 chg.1 "$(DESTDIR)$(MANDIR)"
 
 .PHONY: serve
 serve:
-	[ -d $(CHGSOCKDIR) ] || ( umask 077; mkdir $(CHGSOCKDIR) )
-	$(HG) serve --cwd / --cmdserver chgunix \
+	[ -d "$(CHGSOCKDIR)" ] || ( umask 077; mkdir "$(CHGSOCKDIR)" )
+	"$(HG)" serve --cwd / --cmdserver chgunix \
 		--address $(CHGSOCKNAME) \
 		--config cmdserver.log=/dev/stderr