mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +00:00
Avoid "*** Recursive variable `RM' references itself (eventually)."
This commit is contained in:
parent
9c3c886da3
commit
5a7ba692f5
@ -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))
|
||||
|
@ -7,10 +7,10 @@ endif
|
||||
|
||||
ifdef CMD_EXE
|
||||
NOT := - # Hack
|
||||
RM = del /f $(subst /,\,$1)
|
||||
DEL = del /f $(subst /,\,$1)
|
||||
else
|
||||
NOT := !
|
||||
RM = $(RM) $1
|
||||
DEL = $(RM) $1
|
||||
endif
|
||||
|
||||
CC65FLAGS := -t sim6502
|
||||
@ -44,5 +44,5 @@ $(WORKDIR)/%.or.prg: %.c
|
||||
$(NOT) $(CL65) -Or $(CC65FLAGS) $< -o $@
|
||||
|
||||
clean:
|
||||
-@$(call RM,$(TESTS))
|
||||
-@$(call RM,$(SOURCES:.c=.o))
|
||||
-@$(call DEL,$(TESTS))
|
||||
-@$(call DEL,$(SOURCES:.c=.o))
|
||||
|
@ -8,11 +8,11 @@ endif
|
||||
ifdef CMD_EXE
|
||||
S := $(subst /,\,/)
|
||||
NOT := - # Hack
|
||||
RM = del /f $(subst /,\,$1)
|
||||
DEL = del /f $(subst /,\,$1)
|
||||
else
|
||||
S := /
|
||||
NOT := !
|
||||
RM = $(RM) $1
|
||||
DEL = $(RM) $1
|
||||
endif
|
||||
|
||||
CC65FLAGS := -t sim6502
|
||||
@ -54,6 +54,6 @@ $(WORKDIR)/sitest%prg: sitest.c
|
||||
# -$(SIM65) $(SIM65FLAGS) $@
|
||||
|
||||
clean:
|
||||
-@$(call RM,$(TESTS))
|
||||
-@$(call RM,$(SOURCES:.c=.o))
|
||||
-@$(call RM,$(SOURCES:%.c=$(WORKDIR)/%.out))
|
||||
-@$(call DEL,$(TESTS))
|
||||
-@$(call DEL,$(SOURCES:.c=.o))
|
||||
-@$(call DEL,$(SOURCES:%.c=$(WORKDIR)/%.out))
|
||||
|
@ -8,10 +8,10 @@ endif
|
||||
|
||||
ifdef CMD_EXE
|
||||
S := $(subst /,\,/)
|
||||
RM = del /f $(subst /,\,$1)
|
||||
DEL = del /f $(subst /,\,$1)
|
||||
else
|
||||
S := /
|
||||
RM = $(RM) $1
|
||||
DEL = $(RM) $1
|
||||
endif
|
||||
|
||||
CC65FLAGS := -t sim6502
|
||||
@ -93,8 +93,8 @@ $(WORKDIR)/%.or.prg: %.c $(WORKDIR)/%.ref
|
||||
$(DIFF) $(WORKDIR)/$*.out $(WORKDIR)/$*.ref
|
||||
|
||||
clean:
|
||||
-@$(call RM,$(TESTS))
|
||||
-@$(call RM,$(SOURCES:.c=.o))
|
||||
-@$(call RM,$(SOURCES:%.c=$(WORKDIR)/%.out))
|
||||
-@$(call RM,$(SOURCES:%.c=$(WORKDIR)/%.ref))
|
||||
-@$(call RM,$(SOURCES:%.c=$(WORKDIR)/%.host))
|
||||
-@$(call DEL,$(TESTS))
|
||||
-@$(call DEL,$(SOURCES:.c=.o))
|
||||
-@$(call DEL,$(SOURCES:%.c=$(WORKDIR)/%.out))
|
||||
-@$(call DEL,$(SOURCES:%.c=$(WORKDIR)/%.ref))
|
||||
-@$(call DEL,$(SOURCES:%.c=$(WORKDIR)/%.host))
|
||||
|
@ -6,9 +6,9 @@ ifneq ($(shell echo),)
|
||||
endif
|
||||
|
||||
ifdef CMD_EXE
|
||||
RM = del /f $(subst /,\,$1)
|
||||
DEL = del /f $(subst /,\,$1)
|
||||
else
|
||||
RM = $(RM) $1
|
||||
DEL = $(RM) $1
|
||||
endif
|
||||
|
||||
CC65FLAGS := -t sim6502
|
||||
@ -66,5 +66,5 @@ $(WORKDIR)/%.or.prg: %.c
|
||||
$(SIM65) $(SIM65FLAGS) $@
|
||||
|
||||
clean:
|
||||
-@$(call RM,$(TESTS))
|
||||
-@$(call RM,$(SOURCES:.c=.o))
|
||||
-@$(call DEL,$(TESTS))
|
||||
-@$(call DEL,$(SOURCES:.c=.o))
|
||||
|
Loading…
x
Reference in New Issue
Block a user