Skip to content

Commit

Permalink
Add a clean_generated make rule
Browse files Browse the repository at this point in the history
Easier to clean up the mess when needed.
  • Loading branch information
thockin committed Jul 13, 2016
1 parent 58441e8 commit db42d52
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,20 @@ test-cmd:
#
# Example:
# make clean
clean:
clean: clean_generated
build/make-clean.sh
rm -rf $(OUT_DIR)
find . -type f -name $(GENERATED_FILE_PREFIX)\* | xargs rm -f
rm -rf Godeps/_workspace # Just until we are sure it is gone
.PHONY: clean

# Remove all auto-generated artifacts.
#
# Example:
# make clean_generated
clean_generated:
find . -type f -name $(GENERATED_FILE_PREFIX)\* | xargs rm -f
.PHONY: clean_generated

# Run 'go vet'.
#
# Args:
Expand Down

0 comments on commit db42d52

Please sign in to comment.