generated from RISC-OS-Community/StandardRepoTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MkClean,fd7
42 lines (31 loc) · 1.12 KB
/
MkClean,fd7
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
| Generic Build Cleaner for DDE on RISC OS
| by Paolo Fabio Zaino
echo ++++++++++++++++++++++++
echo ++ Cleaning ++
echo ++++++++++++++++++++++++
Set Build$Root <Obey$Dir>
WimpSlot -min 2048k
Set Build$Source 0
IfThere <Build$Root>.src Then IfThere <Build$Root>.src.Makefile Then Set Build$Source 1
If "<Build$Source>" = "1" Then Dir <Build$Root>.src
If "<Build$Source>" = "1" Then amu clean -D action=clean -f MakeFileDDE
If "<Build$Source>" = "1" Then stripdepnd MakeFileDDE
If "<Build$Source>" = "0" Then echo Skipped, no Sources Makefile found.
Unset Build$Source
echo
echo ---------------------
echo
echo ---------------------
echo Cleaning Tests:
echo ---------------------
Set Build$Tests 0
IfThere <Build$Root>.tests Then IFThere <Build$Root>.tests.Makefile Then Set Build$Tests
If "<Build$Tests>" = "1" Then Dir <Build$Root>.tests
If "<Build$Tests>" = "1" Then amu clean THROWBACK=-throwback -D action=clean -f MakeFileDDE
If "<Build$Tests>" = "1" Then stripdepnd MakeFileDDE
If "<Build$Tests>" = "0" Then echo Skipped, no Makefile for tests found.
Unset Build$Tests
echo
echo ---------------------
echo
Dir <Build$Root>