Krolyxon
Commit 8aaa5c9

Branches

Refs →

nsxiv8aaa5c9

Simplify autoreload backend selection in Makefile

Author
Bert Münnich
Date
2017-05-17 20:11 +0200
Parent
3724d3f
Commit
8aaa5c9398b6cbb0a85ed77812c3f6d11fe80f8e

+5 −8

1 file changed

  1. M Makefile +5 −8
M Makefile View
@@ -21,16 +21,13 @@ ifndef NO_LIBEXIF
2121 LIBS += -lexif
2222 endif
2323
24−.PHONY: clean install uninstall
24+# select autoreload backend
25+# overwritten with `make AUTORELOAD=nop`
26+AUTORELOAD := inotify
2527
26−SRC := commands.c image.c main.c options.c thumbs.c util.c window.c
27−# conditionally compile in autoreload-backend; usage: `make AUTORELOAD=nop`
28−ifeq ($(AUTORELOAD),nop)
29− SRC += autoreload_nop.c
30−else
31− SRC += autoreload_inotify.c
32−endif
28+.PHONY: clean install uninstall
3329
30+SRC := autoreload_$(AUTORELOAD).c commands.c image.c main.c options.c thumbs.c util.c window.c
3431 DEP := $(SRC:.c=.d)
3532 OBJ := $(SRC:.c=.o)
3633