add headers as make dependancy

This commit is contained in:
NRK 2022-04-24 01:54:09 +06:00
parent b45be9bc5b
commit 6f332e5260
1 changed files with 16 additions and 0 deletions

View File

@ -182,6 +182,22 @@ ifneq ($(MACOS_BELOW_1012),)
CPPFLAGS += -DMACOS_BELOW_1012
endif
ifeq ($(strip $(O_DEBUG)),1)
HEADERS += src/dbg.h
endif
ifeq ($(strip $(O_EMOJI)),1)
HEADERS += src/icons.h src/icons-emoji.h
endif
ifeq ($(strip $(O_NERD)),1)
HEADERS += src/icons.h src/icons-nerdfont.h
endif
ifeq ($(strip $(O_ICONS)),1)
HEADERS += src/icons.h src/icons-in-terminal.h
endif
ifeq ($(strip $(O_QSORT)),1)
HEADERS += src/qsort.h
endif
all: $(BIN)
$(BIN): $(SRC) $(HEADERS) Makefile