tSeparate config .h files in Makefile to avoid unnecessary recompilation - ledi… | |
git clone git://lumidify.org/ledit.git (fast, but not encrypted) | |
git clone https://lumidify.org/git/ledit.git (encrypted, but very slow) | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 7d04a4c57facdf6080ce5492979b2652cd675a25 | |
parent e547d65f89c0b88a0b6cad0e22c3c992dac83ba9 | |
Author: lumidify <[email protected]> | |
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 | |
t@@ -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 \ | |
t@@ -48,7 +45,9 @@ LDFLAGS_LEDIT = ${LDFLAGS} `pkg-config --libs x11 xkbfile pa… | |
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} | |