Browse Source

Some topics contain parentheses

Huidae Cho 5 years ago
parent
commit
12d1d1e15a
2 changed files with 4 additions and 2 deletions
  1. 1 1
      include/Make/Html.make
  2. 3 1
      man/Makefile

+ 1 - 1
include/Make/Html.make

@@ -8,7 +8,7 @@ $(HTMLDIR)/%.html: %.html %.tmp.html $(HTMLSRC) $(IMGDST) | $(HTMLDIR)
         $(PYTHON) $(GISBASE)/tools/mkhtml.py $* > $@
 
 $(MANDIR)/%.$(MANSECT): $(HTMLDIR)/%.html
-	$(HTML2MAN) $< $@
+	$(HTML2MAN) "$<" "$@"
 
 %.tmp.html: $(HTMLSRC)
 	if [ "$(HTMLSRC)" != "" ] ; then $(call htmldesc,$<,$@) ; fi

+ 3 - 1
man/Makefile

@@ -47,8 +47,10 @@ default: $(DSTFILES)
 
 # This must be a separate target so that evaluation of $(MANPAGES)
 # is delayed until the indices have been generated
+left := (
+right := )
 manpages:
-	$(MAKE) $(MANPAGES)
+	$(MAKE) $(subst $(left),\$(left),$(subst $(right),\$(right),$(MANPAGES)))
 
 .PHONY: manpages