From: Daniel Carl <danielcarl@gmx.de>
Date: Sat, 27 Jul 2013 09:15:13 +0000 (+0200)
Subject: Don't overwrite users config.h if config.def.h is changed.
X-Git-Url: https://git.owens.tech/assets/112-editable-focus.html/assets/112-editable-focus.html/git?a=commitdiff_plain;h=c0f237a30cd280eddb66907c49f51253ca8efeb5;p=vimb.git

Don't overwrite users config.h if config.def.h is changed.
---

diff --git a/Makefile b/Makefile
index 5358867..2f2192f 100644
--- a/Makefile
+++ b/Makefile
@@ -17,15 +17,17 @@ src/hints.js.h: src/hints.js
 	@echo "minify $<"
 	@cat $< | src/js2h.sh > $@
 
+$(OBJ): src/config.h config.mk
+
 $(TARGET): $(OBJ)
 	@echo "$(CC) $@"
 	@$(CC) $(OBJ) -o $(TARGET) $(LDFLAGS)
 
-src/config.h: src/config.def.h
+src/config.h:
 	@echo create $@ from src/config.def.h
 	@cp src/config.def.h $@
 
-%.o: %.c %.h src/config.h
+%.o: %.c %.h
 	@echo "${CC} $<"
 	@$(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS)