]> Sergey Matveev's repositories - nnn.git/commitdiff
add headers as make dependancy
authorNRK <nrk@disroot.org>
Sat, 23 Apr 2022 19:54:09 +0000 (01:54 +0600)
committerNRK <nrk@disroot.org>
Wed, 11 May 2022 18:32:10 +0000 (00:32 +0600)
Makefile

index 0916948f66894d65ff428ca026f497ac7a190bf1..6b8772f4d70d2cfe4410b44d7dfeb2d3522a387f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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