From ab0b722b0719e3370a21359e4d511af9c4f14e60 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 6 Feb 2022 12:16:52 -0500 Subject: Do not compile or load inotify module when inotify is not available. --- Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index e3eb96f..1bddaa4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -46,7 +46,6 @@ bin_SCRIPTS = \ SOURCES = \ haunt/config.scm \ haunt/utils.scm \ - haunt/inotify.scm \ haunt/post.scm \ haunt/page.scm \ haunt/asset.scm \ @@ -81,6 +80,12 @@ SOURCES += \ endif +if HAVE_INOTIFY + +SOURCES += haunt/inotify.scm + +endif + TESTS = \ tests/helper.scm \ tests/post.scm \ -- cgit v1.2.3