changeset 2529:fddee4b6a427

Do not have config.mak in build depencies when it is not being used.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 16 May 2020 06:11:53 +0300
parents b3b6d82247f5
children aacf3bd1cceb
files Makefile.gen
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.gen	Sat May 16 04:35:29 2020 +0300
+++ b/Makefile.gen	Sat May 16 06:11:53 2020 +0300
@@ -4,9 +4,12 @@
 ifneq ($(DM_CONFIG),)
 ifneq ($(DM_CONFIG),no)
 include $(DM_CONFIG)
+else
+DM_CONFIG=
 endif
 else
 include config.mak
+DM_CONFIG=config.mak
 endif
 
 
@@ -455,7 +458,7 @@
 	$(COMPILE_C_OBJ)
 
 
-$(DMLIB_A): $(addprefix $(OBJPATH),$(DMLIB_OBJS)) $(DMLIB)Makefile.gen config.mak
+$(DMLIB_A): $(addprefix $(OBJPATH),$(DMLIB_OBJS)) $(DMLIB)Makefile.gen $(DM_CONFIG)
 	$(LINK_STATIC_LIB)
 
 
@@ -527,7 +530,7 @@
 ###
 ### Editor targets
 ###
-$(EDITOR_PRO): $(DMLIB)Makefile.gen config.mak $(addprefix $(DMLIB),$(EDITOR_SOURCES) $(EDITOR_HEADERS)) $(addprefix $(OBJPATH),$(DEMO_OBJS)) $(DMLIB_A)
+$(EDITOR_PRO): $(DMLIB)Makefile.gen $(DM_CONFIG) $(addprefix $(DMLIB),$(EDITOR_SOURCES) $(EDITOR_HEADERS)) $(addprefix $(OBJPATH),$(DEMO_OBJS)) $(DMLIB_A)
 	@echo " CREATE $@"
 	@echo "OBJECTS_DIR = $(OBJPATH)" > $@
 	@echo "MOC_DIR = $(OBJPATH)" >> $@