From: Matt Birkholz Date: Sun, 12 Jun 2016 22:21:20 +0000 (-0700) Subject: imail/Makefile.am: Use update-html-index to un/install. X-Git-Tag: mit-scheme-pucked-9.2.12~289 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=735d3dc71002088a6ceeb5d8321725fca29b84ba;p=mit-scheme.git imail/Makefile.am: Use update-html-index to un/install. --- diff --git a/src/imail/Makefile.am b/src/imail/Makefile.am index 9cd230963..ec0775f7c 100644 --- a/src/imail/Makefile.am +++ b/src/imail/Makefile.am @@ -104,9 +104,17 @@ install-data-hook: echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \ | $(MIT_SCHEME_EXE) --batch-mode; fi +install-html: install-html-am + if [ -f "$(DESTDIR)$(htmldir)/index.html" ]; then \ + echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \ + | $(MIT_SCHEME_EXE) --batch-mode; fi + uninstall-hook: if [ -f "$(DESTDIR)$(scmlibdir)optiondb.scm" ]; then \ echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \ | $(MIT_SCHEME_EXE) --batch-mode; fi + [ -d "$(DESTDIR)$(htmldir)" ] \ + && ( echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \ + | $(MIT_SCHEME_EXE) --batch-mode ) [ -d "$(DESTDIR)$(scmlib_subdir)" ] \ && rmdir "$(DESTDIR)$(scmlib_subdir)"