Avoid "*** Recursive variable `RM' references itself (eventually)."

This commit is contained in:
Oliver Schmidt
2015-06-27 00:33:24 +02:00
parent 9c3c886da3
commit 5a7ba692f5
5 changed files with 24 additions and 24 deletions

View File

@@ -11,12 +11,12 @@ endif
ifdef CMD_EXE
EXE := .exe
RM = del /f $(subst /,\,$1)
DEL = del /f $(subst /,\,$1)
MKDIR = mkdir $(subst /,\,$1)
RMDIR = rmdir /s /q $(subst /,\,$1)
else
EXE :=
RM = $(RM) $1
DEL = $(RM) $1
MKDIR = mkdir $1
RMDIR = rmdir $1
endif
@@ -52,5 +52,5 @@ mostly-clean:
@$(MAKE) -C misc clean
clean: mostly-clean
-@$(call RM,$(WORKDIR)/bdiff$(EXE))
-$(call RMDIR,$(WORKDIR))
-@$(call DEL,$(WORKDIR)/bdiff$(EXE))
-@$(call RMDIR,$(WORKDIR))