From 735d3dc71002088a6ceeb5d8321725fca29b84ba Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sun, 12 Jun 2016 15:21:20 -0700 Subject: [PATCH] imail/Makefile.am: Use update-html-index to un/install. --- src/imail/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) 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)" -- 2.25.1