Commit db42d52b authored by Tim Hockin's avatar Tim Hockin

Add a clean_generated make rule

Easier to clean up the mess when needed.
parent 58441e87
...@@ -142,13 +142,20 @@ test-cmd: ...@@ -142,13 +142,20 @@ test-cmd:
# #
# Example: # Example:
# make clean # make clean
clean: clean: clean_generated
build/make-clean.sh build/make-clean.sh
rm -rf $(OUT_DIR) 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 rm -rf Godeps/_workspace # Just until we are sure it is gone
.PHONY: clean .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'. # Run 'go vet'.
# #
# Args: # Args:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment