Przeglądaj źródła

Simplify autoreload backend selection in Makefile

master
Bert Münnich 8 lat temu
rodzic
commit
8aaa5c9398
1 zmienionych plików z 5 dodań i 8 usunięć
  1. +5
    -8
      Makefile

+ 5
- 8
Makefile Wyświetl plik

@@ -21,16 +21,13 @@ ifndef NO_LIBEXIF
LIBS += -lexif LIBS += -lexif
endif 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) DEP := $(SRC:.c=.d)
OBJ := $(SRC:.c=.o) OBJ := $(SRC:.c=.o)




Ładowanie…
Anuluj
Zapisz