commit 7d04a4c57facdf6080ce5492979b2652cd675a25 parent e547d65f89c0b88a0b6cad0e22c3c992dac83ba9 Author: lumidify <nobody@lumidify.org> Date: Mon, 1 Nov 2021 09:45:28 +0100 Separate config .h files in Makefile to avoid unnecessary recompilation Diffstat:
M | Makefile | | | 7 | +++---- |
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile @@ -31,13 +31,10 @@ HDR = \ common.h \ keys.h \ keys_basic.h \ - keys_basic_config.h \ keys_command.h \ - keys_command_config.h \ memory.h \ search.h \ theme.h \ - theme_config.h \ txtbuf.h \ undo.h \ util.h \ @@ -48,7 +45,9 @@ LDFLAGS_LEDIT = ${LDFLAGS} `pkg-config --libs x11 xkbfile pangoxft xext` -lm all: ${BIN} -# FIXME: separate *_config.h so they don't make everything recompile +theme.o : theme_config.h +keys_basic.o : keys_basic_config.h +keys_command.o : keys_command_config.h ${OBJ} : ${HDR}