aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f375fa3..4276326 100644
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,13 @@ endif
.PHONY: clean install uninstall
SRC := commands.c image.c main.c options.c thumbs.c util.c window.c
+# conditionally compile in autoreload-backend; usage: `make AUTORELOAD=nop`
+ifeq ($(AUTORELOAD),nop)
+ SRC += autoreload_nop.c
+else
+ SRC += autoreload_inotify.c
+endif
+
DEP := $(SRC:.c=.d)
OBJ := $(SRC:.c=.o)