mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Fixed 'clean' rule because rdel cannot delete itself.
svn path=/trunk/; revision=3265
This commit is contained in:
parent
72c8bf3db3
commit
f91b107c89
2 changed files with 6 additions and 8 deletions
|
@ -6,7 +6,7 @@ TOOLS = \
|
|||
rcopy$(EXE_POSTFIX) \
|
||||
rdel$(EXE_POSTFIX) \
|
||||
rmkdir$(EXE_POSTFIX) \
|
||||
rrmdir$(EXE_POSTFIX) \
|
||||
rrmdir$(EXE_POSTFIX) \
|
||||
rsym$(EXE_POSTFIX)
|
||||
|
||||
CLEAN_FILES = $(TOOLS)
|
||||
|
@ -31,7 +31,6 @@ endif
|
|||
|
||||
rdel$(EXE_POSTFIX): rdel.c
|
||||
$(HOST_CC) $(CFLAGS) rdel.c -o rdel$(EXE_POSTFIX)
|
||||
# $(HOST_CC) $(CFLAGS) -liberty rdel.c -o rdel$(EXE_POSTFIX)
|
||||
|
||||
ifeq ($(HOST),mingw32-linux)
|
||||
rmkdir$(EXE_POSTFIX): rmkdir.c
|
||||
|
@ -65,15 +64,14 @@ wmc_directory_target:
|
|||
|
||||
ifeq ($(HOST),mingw32-linux)
|
||||
clean:
|
||||
rm $(TOOLS)
|
||||
rm mkconfig$(EXE_POSTFIX)
|
||||
make -C wmc clean
|
||||
rm mkconfig
|
||||
rm $(TOOLS)
|
||||
endif
|
||||
ifeq ($(HOST),mingw32-windows)
|
||||
clean:
|
||||
$(PATH_TO_TOP)/rdel $(TOOLS)
|
||||
$(PATH_TO_TOP)/rdel mkconfig$(EXE_POSTFIX)
|
||||
make -C wmc clean
|
||||
del *$(EXE_POSTFIX)
|
||||
endif
|
||||
|
||||
.PHONY: all clean
|
||||
|
|
|
@ -47,8 +47,8 @@ clean:
|
|||
endif
|
||||
ifeq ($(HOST),mingw32-windows)
|
||||
clean:
|
||||
$(PATH_TO_TOP)/rdel *.o
|
||||
$(PATH_TO_TOP)/rdel wmc$(EXE_POSTFIX)
|
||||
del *.o
|
||||
del wmc$(EXE_POSTFIX)
|
||||
endif
|
||||
|
||||
.phony: clean
|
||||
|
|
Loading…
Reference in a new issue