diff --git a/tools/Unix.mk b/tools/Unix.mk index 3b55b3d91e..36f8f073fc 100644 --- a/tools/Unix.mk +++ b/tools/Unix.mk @@ -416,7 +416,7 @@ DIRLINKS_FILE += $(DIRLINKS_EXTERNAL_DEP) # The symlink subfolders need to be removed before the parent symlinks .PHONY: clean_dirlinks -clean_dirlinks: +clean_dirlinks: tools/incdir$(HOSTEXEEXT) $(Q) $(call DELFILE, $(DIRLINKS_FILE)) $(Q) $(call DELFILE, .dirlinks) $(Q) $(DIRUNLINK) drivers/platform @@ -815,7 +815,7 @@ endif # apps_distclean: Perform the distclean operation only in the user application # directory. -apps_preconfig: .dirlinks +apps_preconfig: tools/incdir$(HOSTEXEEXT) .dirlinks ifneq ($(APPDIR),) $(Q) $(MAKE) -C $(APPDIR) preconfig endif diff --git a/tools/Win.mk b/tools/Win.mk index 87fb218261..0f3273e2ec 100644 --- a/tools/Win.mk +++ b/tools/Win.mk @@ -397,7 +397,7 @@ DIRLINKS_FILE += $(DIRLINKS_EXTERNAL_DEP) # The symlink subfolders need to be removed before the parent symlinks .PHONY: clean_dirlinks -clean_dirlinks: +clean_dirlinks: tools\incdir$(HOSTEXEEXT) $(Q) $(call DELFILE, $(DIRLINKS_FILE)) $(Q) $(call DELFILE, .dirlinks) $(Q) $(DIRUNLINK) drivers\platform @@ -731,7 +731,7 @@ endif # apps_distclean: Perform the distclean operation only in the user application # directory. -apps_preconfig: .dirlinks +apps_preconfig: tools\incdir$(HOSTEXEEXT) .dirlinks ifneq ($(APPDIR),) $(Q) $(MAKE) -C "$(APPDIR)" preconfig endif