-
Notifications
You must be signed in to change notification settings - Fork 10
/
CleanUp - Keep hex.bat
94 lines (71 loc) · 1.8 KB
/
CleanUp - Keep hex.bat
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
@echo off
REM Remove files generated by compiler in this directory
REM and all subdirectories.
echo Removing *.$$$ files...
@del "%~dp0\*.$$$" /f /q /s 2>NUL
echo.
echo Removing *.bkx files...
@del "%~dp0\*.bkx" /f /q /s 2>NUL
echo.
echo Removing *.cce files...
@del "%~dp0\*.cce" /f /q /s 2>NUL
echo.
echo Removing *.cod files...
@del "%~dp0\*.cod" /f /q /s 2>NUL
echo.
echo Removing *.cof files...
@del "%~dp0\*.cof" /f /q /s 2>NUL
echo.
echo Removing *.err files...
del "%~dp0\*.err" /f /q /s 2>NUL
echo.
echo Removing *.i files...
@del "%~dp0\*.i" /f /q /s 2>NUL
echo.
echo Removing *.lde files...
@del "%~dp0\*.lde" /f /q /s 2>NUL
echo.
echo Removing *.lst files...
@del "%~dp0\*.lst" /f /q /s 2>NUL
echo.
echo Removing *.obj files...
@del "%~dp0\*.obj" /f /q /s 2>NUL
echo.
echo Removing *.o files...
@del "%~dp0\*.o" /f /q /s 2>NUL
echo.
echo Removing *.rlf files...
@del "%~dp0\*.rlf" /f /q /s 2>NUL
echo.
echo Removing *.sym files...
@del "%~dp0\*.sym" /f /q /s 2>NUL
echo.
echo Removing *.sdb files...
@del "%~dp0\*.sdb" /f /q /s 2>NUL
echo.
echo Removing *.wat files...
@del "%~dp0\*.wat" /f /q /s 2>NUL
echo.
echo Removing *.mcs files...
@del "%~dp0\*.mcs" /f /q /s 2>NUL
echo.
echo Removing *.mptags files...
@del "%~dp0\*.mptags" /f /q /s 2>NUL
echo.
echo Removing *.tagsrc files...
@del "%~dp0\*.tagsrc" /f /q /s 2>NUL
echo.
echo Removing *.map files...
@del "%~dp0\*.map" /f /q /s 2>NUL
echo.
echo Removing *.elf files...
@del "%~dp0\*.elf" /f /q /s 2>NUL
echo.
echo Removing *.d files...
@del "%~dp0\*.d" /f /q /s 2>NUL
echo.
echo Removing MPLABX and MPLAB8 Compiler Output directories...
@rd "%~dp0\Objects" /S /Q 2>NUL
@rd "%~dp0\MPLAB.X\Build" /S /Q 2>NUL
@rd "%~dp0\MPLAB.X\dist" /S /Q 2>NUL
echo Done.