commit 8aaa5c9398b6cbb0a85ed77812c3f6d11fe80f8e
Author: Bert Münnich <ber.t_AT_posteo.de>
AuthorDate: Wed May 17 20:11:44 2017 +0200
Commit: Bert Münnich <ber.t_AT_posteo.de>
CommitDate: Wed May 17 20:11:44 2017 +0200
Simplify autoreload backend selection in Makefile
diff --git a/Makefile b/Makefile
index 4276326..8b3f4b5 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -21,16 +21,13 @@ ifndef NO_LIBEXIF
LIBS += -lexif
endif
-.PHONY: clean install uninstall
+# select autoreload backend
+# overwritten with `make AUTORELOAD=nop`
+AUTORELOAD := inotify
-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
+.PHONY: clean install uninstall
+SRC := autoreload_$(AUTORELOAD).c commands.c image.c main.c options.c thumbs.c util.c window.c
DEP := $(SRC:.c=.d)
OBJ := $(SRC:.c=.o)
Received on Wed May 17 2017 - 20:26:18 CEST
This archive was generated by hypermail 2.3.0
: Wed May 17 2017 - 20:36:36 CEST