From d3adc5eec189c6552f102b3377909ea59008cb9b Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sun, 12 Mar 2017 00:42:03 -0700 Subject: [PATCH] gtk-screen/Makefile.am (install-data-hook): Punt if no optiondb.scm. --- src/gtk-screen/Makefile.am | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) 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 -- 2.25.1