summaryrefslogtreecommitdiff
path: root/include/makeinclude/clean.bor
blob: dae12a3e83ec37a4bec0d6086035757d1b73ea9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# Rules for cleaning up intermediate files
#

clean:
	@copy &&!
@del $(OBJFILES:.obj=.obj ^
@del ) $(IDLFILES:.idl=C.cpp ^
@del ) $(IDLFILES:.idl=C.h ^
@del ) $(IDLFILES:.idl=C.i ^
@del ) $(IDLFILES:.idl=S.cpp ^
@del ) $(IDLFILES:.idl=S.h ^
@del ) $(IDLFILES:.idl=S.i ^
@del ) $(IDLFILES:.idl=S_T.cpp ^
@del ) $(IDLFILES:.idl=S_T.h ^
@del ) $(IDLFILES:.idl=S_T.i ^
@del ) $(IDLFILES:.idl=Cli.cpp ^
@del ) $(IDLFILES:.idl=Cli.h ^
@del ) $(IDLFILES:.idl=Cli.i ^
@del ) $(IDLFILES:.idl=Ser.cpp ^
@del ) $(IDLFILES:.idl=Ser.h ^
@del ) $(IDLFILES:.idl=Ser.i ^
@del ) $(IDLFILES:.idl=Ser_T.cpp ^
@del ) $(IDLFILES:.idl=Ser_T.h ^
@del ) $(IDLFILES:.idl=Ser_T.i ^
@del ) $(RESOURCE)
! clean_$(NAME)~.bat 1> NUL
	-@clean_$(NAME)~.bat 2> NUL
	@del clean_$(NAME)~.bat

realclean:
	@copy &&!
@del $(OBJFILES:.obj=.obj ^
@del ) $(IDLFILES:.idl=C.cpp ^
@del ) $(IDLFILES:.idl=C.h ^
@del ) $(IDLFILES:.idl=C.i ^
@del ) $(IDLFILES:.idl=S.cpp ^
@del ) $(IDLFILES:.idl=S.h ^
@del ) $(IDLFILES:.idl=S.i ^
@del ) $(IDLFILES:.idl=S_T.cpp ^
@del ) $(IDLFILES:.idl=S_T.h ^
@del ) $(IDLFILES:.idl=S_T.i ^
@del ) $(IDLFILES:.idl=Cli.cpp ^
@del ) $(IDLFILES:.idl=Cli.h ^
@del ) $(IDLFILES:.idl=Cli.i ^
@del ) $(IDLFILES:.idl=Ser.cpp ^
@del ) $(IDLFILES:.idl=Ser.h ^
@del ) $(IDLFILES:.idl=Ser.i ^
@del ) $(IDLFILES:.idl=Ser_T.cpp ^
@del ) $(IDLFILES:.idl=Ser_T.h ^
@del ) $(IDLFILES:.idl=Ser_T.i ^
@del ) $(RESOURCE)
! realclean_$(NAME)~.bat 1> NUL
	-@realclean_$(NAME)~.bat 2> NUL
	@del realclean_$(NAME)~.bat
	-@del $(TARGET) 2>NUL
	-@del $(TARGET:.exe=.tds) 2>NUL
	-@del $(TARGET:.dll=.tds) 2>NUL
	-@del $(TARGET:.dll=.lib) 2>NUL
	-@del $(OBJDIR)\$(NAME).csm 2>NUL
	-@del $(OBJDIR)\$(NAME).\#* 2>NUL
!ifdef CORE_TARGET
	-@del $(CORE_TARGET) 2>NUL
	-@del $(CORE_TARGET:.exe=.tds) 2>NUL
	-@del $(CORE_TARGET:.dll=.tds) 2>NUL
!endif