Add autoreload support by inotify (and dummy backend nop)

This commit is contained in:
Max Voit
2017-01-26 22:18:32 +01:00
committed by Bert Münnich
parent 1fb3ec576c
commit edb117e3bd
5 changed files with 247 additions and 1 deletions

View File

@ -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)