summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMax Voit <max.voit+gtdv@with-eyes.net>2017-01-26 22:18:32 +0100
committerBert Münnich <ber.t@posteo.de>2017-05-17 15:52:40 +0200
commitedb117e3bdb4d6bef4a4749d94144df8472c0a4d (patch)
tree6bb2a23fff028c565f40257d3f867e47e1c91edb /Makefile
parent1fb3ec576ca4de2056a914b8bc3fd5ba8e99429e (diff)
downloadnsxiv-edb117e3bdb4d6bef4a4749d94144df8472c0a4d.tar.zst
Add autoreload support by inotify (and dummy backend nop)
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)