build: Fix theoretical infinite loops

Add error-checking to 'cd' in a few cases where omitting the checks
might result in an infinite loop.

Closes #535
This commit is contained in:
Daniel Shahaf 2015-11-19 22:23:11 +00:00 committed by Daniel Stenberg
parent ff8d352ae9
commit 80562083da
3 changed files with 6 additions and 6 deletions

View File

@ -160,10 +160,10 @@ dist-hook:
done) done)
html: html:
cd docs; make html cd docs && make html
pdf: pdf:
cd docs; make pdf cd docs && make pdf
check: test examples check-docs check: test examples check-docs

View File

@ -45,10 +45,10 @@ MAN2HTML= roffit < $< >$@
SUFFIXES = .1 .html .pdf SUFFIXES = .1 .html .pdf
html: $(HTMLPAGES) html: $(HTMLPAGES)
cd libcurl; make html cd libcurl && make html
pdf: $(PDFPAGES) pdf: $(PDFPAGES)
cd libcurl; make pdf cd libcurl && make pdf
.1.html: .1.html:
$(MAN2HTML) $(MAN2HTML)

View File

@ -99,13 +99,13 @@ libcurl-symbols.3: $(srcdir)/symbols-in-versions $(srcdir)/mksymbolsmanpage.pl
perl $(srcdir)/mksymbolsmanpage.pl < $(srcdir)/symbols-in-versions > $@ perl $(srcdir)/mksymbolsmanpage.pl < $(srcdir)/symbols-in-versions > $@
html: $(HTMLPAGES) html: $(HTMLPAGES)
cd opts; make html cd opts && make html
.3.html: .3.html:
$(MAN2HTML) $(MAN2HTML)
pdf: $(PDFPAGES) pdf: $(PDFPAGES)
cd opts; make pdf cd opts && make pdf
.3.pdf: .3.pdf:
@(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \ @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \