Simplify autoreload backend selection in Makefile
This commit is contained in:
		
							
								
								
									
										13
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								Makefile
									
									
									
									
									
								
							| @@ -21,16 +21,13 @@ ifndef NO_LIBEXIF | |||||||
| 	LIBS     += -lexif | 	LIBS     += -lexif | ||||||
| endif | endif | ||||||
|  |  | ||||||
|  | # select autoreload backend | ||||||
|  | # overwritten with `make AUTORELOAD=nop` | ||||||
|  | AUTORELOAD := inotify | ||||||
|  |  | ||||||
| .PHONY: clean install uninstall | .PHONY: clean install uninstall | ||||||
|  |  | ||||||
| SRC := commands.c image.c main.c options.c thumbs.c util.c window.c | SRC := autoreload_$(AUTORELOAD).c 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) | DEP := $(SRC:.c=.d) | ||||||
| OBJ := $(SRC:.c=.o) | OBJ := $(SRC:.c=.o) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user