Avoid "*** Recursive variable `RM' references itself (eventually)."
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user