X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=distrib%2FMakefile-bin.in;h=b11b3702c83382e1fd25b53ffeda05da7f2d574d;hb=4ca3e08460d0b824cc819fdfb910116858dbcb3f;hp=4ab0e9a09a3493aa3c8a36af729d18b89d0bc734;hpb=7516738a036aac81e165d5e0a4973f1b1585a855;p=ghc-hetmet.git diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in index 4ab0e9a..b11b370 100644 --- a/distrib/Makefile-bin.in +++ b/distrib/Makefile-bin.in @@ -198,17 +198,20 @@ denounce: @echo @echo Installation of ghc-5.00 was successful. @echo To use, add $(bindir) to your PATH. - @echo Docs: - @echo " GHC User Guide is $(htmldir)/set/book-users-guide.html" - @echo " Libraries Guide is $(htmldir)/set/book-hslibs.html" - @echo " .ps form of both is in $(htmldir)/set/set.ps" - @echo + @if test -d html ; then \ + echo Docs: ;\ + echo " GHC User Guide is $(htmldir)/set/book-users-guide.html" ; \ + echo " Libraries Guide is $(htmldir)/set/book-hslibs.html" ; \ + echo " .ps form of both is in $(htmldir)/set/set.ps" ; \ + echo ; \ + else \ + echo "Warning: this binary distribution does NOT contain documentation!" ; \ + fi postinstall: - if test -x "./post-install-script" ; then \ + @if test -x "./post-install-script" ; then \ echo "Running project-specific post-install script ..." ; \ - ./post-install-script $(platform) $(prefix) \ - $(package)-$(version); \ + ./post-install-script $(platform) $(libdir) ; \ echo "Done" ; \ fi @@ -255,8 +258,8 @@ show-install-setup: .PHONY: show-install-setup install-docs install-dirs-docs install-docs : install-dirs-docs - $(CP) -r html/* $(htmldir) - $(CP) ps/set.ps $(htmldir)/set/set.ps + if test -d html ; then $(CP) -r html/* $(htmldir) ; fi + if test -f ps/set.ps ; then $(CP) ps/set.ps $(htmldir)/set/set.ps ; fi install-dirs-docs: $(INSTALL_DIR) $(htmldir)