nsxiv8aaa5c9
Simplify autoreload backend selection in Makefile
+5 −8
1 file changed
- M Makefile +5 −8
| @@ -21,16 +21,13 @@ ifndef NO_LIBEXIF | |||
| 21 | 21 | LIBS += -lexif | |
| 22 | 22 | endif | |
| 23 | 23 | ||
| 24 | − | .PHONY: clean install uninstall | |
| 24 | + | # select autoreload backend | |
| 25 | + | # overwritten with `make AUTORELOAD=nop` | |
| 26 | + | AUTORELOAD := inotify | |
| 25 | 27 | ||
| 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 | |
| 33 | 29 | ||
| 30 | + | SRC := autoreload_$(AUTORELOAD).c commands.c image.c main.c options.c thumbs.c util.c window.c | |
| 34 | 31 | DEP := $(SRC:.c=.d) | |
| 35 | 32 | OBJ := $(SRC:.c=.o) | |
| 36 | 33 | ||