@@ -80,7 +80,7 @@ all: build-program
8080 ./$(MAIN) -s -w latex $< >$@ || rm -f $@
8181%.rtf: % $(MAIN)
8282 ./$(MAIN) -s -w rtf $< >$@ || rm -f $@
83−%.pdf: % $(MAIN)
83+%.pdf: % $(MAIN) markdown2pdf
8484 sh ./markdown2pdf $< || rm -f $@
8585
8686.PHONY: templates
@@ -115,8 +115,8 @@ $(EXECS): $(BUILDDIR)
115115 done
116116
117117.PHONY: build-doc
118−cleanup_files+=README.html
119−build-doc: $(DOCS)
118+cleanup_files+=README.html INSTALL.html
119+build-doc: $(DOCS) INSTALL.html
120120
121121.PHONY: build-program
122122build-program: build-exec build-doc
@@ -130,7 +130,7 @@ html/: configure
130130 $(BUILDCMD) haddock && mv $(BUILDDIR)/doc/html .
131131
132132.PHONY: build-all
133−build-all: all build-lib-doc
133+build-all: build-program build-lib-doc
134134
135135# User documents installation.
136136.PHONY: install-doc uninstall-doc
@@ -201,7 +201,7 @@ osx_src:=osx
201201doc_more:=README.rtf LICENSE.rtf $(osx_src)/Welcome.rtf
202202osx_pkg_name:=Pandoc_$(VERSION).pkg
203203cleanup_files+=$(osx_dest) $(doc_more) $(osx_pkg_name)
204−osx-pkg-prep: $(osx_dest)
204+osx-pkg-prep: build-program $(osx_dest)
205205$(osx_dest)/: $(doc_more)
206206 -rm -rf $(osx_dest)
207207 $(INSTALL) -d $(osx_dest)