From: Holger Schemel Date: Sun, 18 Feb 2024 17:01:37 +0000 (+0100) Subject: added Makefile targets to clean up header dependency files X-Git-Tag: 4.4.0.0-test-1~342 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=bddf6c22480ed7f7fca83b7d6c4f9dc10d19f57a;p=rocksndiamonds.git added Makefile targets to clean up header dependency files --- diff --git a/Makefile b/Makefile index a8213040..e91a1bc7 100644 --- a/Makefile +++ b/Makefile @@ -116,6 +116,9 @@ tags: depend dep: $(MAKE_CMD) depend +depend-clean dep-clean: + $(MAKE_CMD) depend-clean + enginetest: all $(MAKE_ENGINETEST) diff --git a/src/Makefile b/src/Makefile index a29e0919..6f586e0f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -413,6 +413,14 @@ depend: $(MAKE) -C $(GAME_MM_DIR) depend for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend +depend-clean: + $(MAKE) -C $(LIBGAME_DIR) depend-clean + $(MAKE) -C $(GAME_BD_DIR) depend-clean + $(MAKE) -C $(GAME_EM_DIR) depend-clean + $(MAKE) -C $(GAME_SP_DIR) depend-clean + $(MAKE) -C $(GAME_MM_DIR) depend-clean + $(RM) .depend + ifeq (.depend,$(wildcard .depend)) include .depend endif diff --git a/src/game_bd/Makefile b/src/game_bd/Makefile index b3be1068..9683f5ea 100644 --- a/src/game_bd/Makefile +++ b/src/game_bd/Makefile @@ -68,6 +68,9 @@ clean: depend: for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend +depend-clean: + $(RM) .depend + ifeq (.depend,$(wildcard .depend)) include .depend endif diff --git a/src/game_em/Makefile b/src/game_em/Makefile index 827d51a3..d106dd03 100644 --- a/src/game_em/Makefile +++ b/src/game_em/Makefile @@ -60,6 +60,9 @@ clean: depend: for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend +depend-clean: + $(RM) .depend + ifeq (.depend,$(wildcard .depend)) include .depend endif diff --git a/src/game_mm/Makefile b/src/game_mm/Makefile index e3dba140..c979def4 100644 --- a/src/game_mm/Makefile +++ b/src/game_mm/Makefile @@ -57,6 +57,9 @@ clean: depend: for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend +depend-clean: + $(RM) .depend + ifeq (.depend,$(wildcard .depend)) include .depend endif diff --git a/src/game_sp/Makefile b/src/game_sp/Makefile index 78f3bb37..1d327c50 100644 --- a/src/game_sp/Makefile +++ b/src/game_sp/Makefile @@ -96,6 +96,9 @@ clean: depend: for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend +depend-clean: + $(RM) .depend + ifeq (.depend,$(wildcard .depend)) include .depend endif diff --git a/src/libgame/Makefile b/src/libgame/Makefile index 246655f5..2718b459 100644 --- a/src/libgame/Makefile +++ b/src/libgame/Makefile @@ -79,6 +79,9 @@ clean: depend: for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend +depend-clean: + $(RM) .depend + ifeq (.depend,$(wildcard .depend)) include .depend endif