Commit 80562083 authored by Daniel Shahaf's avatar Daniel Shahaf Committed by Daniel Stenberg
Browse files

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
parent ff8d352a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -160,10 +160,10 @@ dist-hook:
	done)

html:
	cd docs; make html
	cd docs && make html

pdf:
	cd docs; make pdf
	cd docs && make pdf

check: test examples check-docs

+2 −2
Original line number Diff line number Diff line
@@ -45,10 +45,10 @@ MAN2HTML= roffit < $< >$@
SUFFIXES = .1 .html .pdf

html: $(HTMLPAGES)
	cd libcurl; make html
	cd libcurl && make html

pdf: $(PDFPAGES)
	cd libcurl; make pdf
	cd libcurl && make pdf

.1.html:
	$(MAN2HTML)
+2 −2
Original line number Diff line number Diff line
@@ -99,13 +99,13 @@ libcurl-symbols.3: $(srcdir)/symbols-in-versions $(srcdir)/mksymbolsmanpage.pl
	perl $(srcdir)/mksymbolsmanpage.pl < $(srcdir)/symbols-in-versions > $@

html: $(HTMLPAGES)
	cd opts; make html
	cd opts && make html

.3.html:
	$(MAN2HTML)

pdf: $(PDFPAGES)
	cd opts; make pdf
	cd opts && make pdf

.3.pdf:
	@(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \