From: Matt Birkholz Date: Sun, 12 Mar 2017 07:42:03 +0000 (-0700) Subject: gtk-screen/Makefile.am (install-data-hook): Punt if no optiondb.scm. X-Git-Tag: mit-scheme-pucked-9.2.12~185 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=d3adc5eec189c6552f102b3377909ea59008cb9b;p=mit-scheme.git gtk-screen/Makefile.am (install-data-hook): Punt if no optiondb.scm. --- diff --git a/src/gtk-screen/Makefile.am b/src/gtk-screen/Makefile.am index 64ab9b8e9..3e3990c4b 100644 --- a/src/gtk-screen/Makefile.am +++ b/src/gtk-screen/Makefile.am @@ -67,18 +67,21 @@ EXTRA_DIST += make.scm optiondb.scm EXTRA_DIST += debian install-data-hook: - echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \ - | $(MIT_SCHEME_EXE) --batch-mode + if [ -f "$(DESTDIR)$(scmlibdir)optiondb.scm" ]; then \ + echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \ + | $(MIT_SCHEME_EXE) --batch-mode; fi #install-html: install-html-am -# echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \ -# | $(MIT_SCHEME_EXE) --batch-mode +# if [ -f "$(DESTDIR)$(htmldir)/index.html" ]; then \ +# echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \ +# | $(MIT_SCHEME_EXE) --batch-mode; fi uninstall-hook: - echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \ - | $(MIT_SCHEME_EXE) --batch-mode - [ -d "$(DESTDIR)$(scmlib_subdir)" ] \ - && rmdir "$(DESTDIR)$(scmlib_subdir)" -# [ -d "$(DESTDIR)$(htmldir)" ] \ -# && ( echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \ -# | $(MIT_SCHEME_EXE) --batch-mode ) + if [ -f "$(DESTDIR)$(scmlibdir)optiondb.scm" ]; then \ + echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \ + | $(MIT_SCHEME_EXE) --batch-mode; fi + if [ -d "$(DESTDIR)$(scmlib_subdir)" ]; then \ + rmdir "$(DESTDIR)$(scmlib_subdir)"; fi +# if [ -f "$(DESTDIR)$(htmldir)/index.html" ]; then \ +# echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \ +# | $(MIT_SCHEME_EXE) --batch-mode; fi