Skip to content

Commit 1a13708

Browse files
author
Gonzalo Diaz
committed
[CONFIG] Makefile: better clean command.
1 parent b7a5b33 commit 1a13708

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Makefile

+13
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ RUNTIME_TOOL=dotnet
3232
PACKAGE_TOOL=dotnet
3333
VERBOSITY_LEVEL=normal
3434

35+
PROJECT_DIRECTORY=algorithm-exercises-csharp
36+
TEST_PROJECT_DIRECTORY=algorithm-exercises-csharp-test
37+
3538
help: list
3639
@echo ""
3740
@echo "Note: create and activate the environment in your local shell type (example):"
@@ -98,6 +101,16 @@ upgrade:
98101
clean:
99102
${PACKAGE_TOOL} clean --verbosity ${VERBOSITY_LEVEL}
100103

104+
rm -vfr .mono/ || true
105+
find ${PROJECT_DIRECTORY} -path "*/TestResults/*" -type d -print -exec rm -vfr {} ';' || true
106+
find ${PROJECT_DIRECTORY} -path "*/bin/*" -print -exec rm -vfr {} ';' || true
107+
find ${PROJECT_DIRECTORY} -path "*/obj/*" -print -exec rm -fr {} ';' || true
108+
109+
find ${TEST_PROJECT_DIRECTORY} -path "*/coverage*" -print -exec rm -vfr {} ';' || true
110+
find ${TEST_PROJECT_DIRECTORY} -path "*/TestResults/*" -type d -print -exec rm -vfr {} ';' || true
111+
find ${TEST_PROJECT_DIRECTORY} -path "*/bin/*" -print -exec rm -fr {} ';' || true
112+
find ${TEST_PROJECT_DIRECTORY} -path "*/obj/*" -print -exec rm -fr {} ';' || true
113+
101114
compose/build: env
102115
docker-compose --profile testing build
103116

0 commit comments

Comments
 (0)