imail/Makefile.am: Use update-html-index to un/install.
authorMatt Birkholz <puck@birchwood-abbey.net>
Sun, 12 Jun 2016 22:21:20 +0000 (15:21 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Sun, 12 Jun 2016 22:21:20 +0000 (15:21 -0700)
src/imail/Makefile.am

index 9cd2309633e735c97b2540893fd6bcb41178bcbc..ec0775f7c59f806009f3782ad0db4b5528287f36 100644 (file)
@@ -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)"