Skip to content

Commit

Permalink
Add a thorough clean make target
Browse files Browse the repository at this point in the history
`make distclean` will not only run `make clean` but it will also
run `git clean -xdff` for the main project as well as the submodules
thus giving you a pristine tree.

Note that it will remove *all* of the files not in the git index
as well as all the build artifacts! Use with care!
  • Loading branch information
grendello committed Jun 10, 2016
1 parent 99bc5ec commit a47e69b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ run-all-tests: run-nunit-tests run-apk-tests
clean:
$(MSBUILD) /t:Clean

distclean:
# It may fail if we're cleaning a half-built tree, no harm done if we ignore it
-$(MAKE) clean
git clean -xdff
git submodule foreach git clean -xdff

# $(call RUN_NUNIT_TEST,filename,log-lref?)
define RUN_NUNIT_TEST
MONO_TRACE_LISTENER=Console.Out \
Expand Down

0 comments on commit a47e69b

Please sign in to comment.