]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Added a clean target to remove build artifacts
authorSebastian <sebb@sebb767.de>
Tue, 6 Mar 2018 19:42:38 +0000 (20:42 +0100)
committerJack Humbert <jack.humb@gmail.com>
Fri, 16 Mar 2018 20:44:22 +0000 (16:44 -0400)
This commit adds a new clean target to the makefile which deletes
the .build directory which removes all build artifacts.

Makefile

index 8350d5ce34434549847e9d2ec684704e30daaab2..9ef82bbd3c2e0b02c2ce91faf89e7a886bb781ea 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -124,6 +124,12 @@ generate-keyboards-file:
        $(foreach PRINTING_KEYBOARD,$(KEYBOARDS),$(eval $(call PRINT_KEYBOARD)))
        exit 0
 
+clean:
+       echo -n 'Deleting .build ... '
+       rm -rf $(BUILD_DIR)
+       echo 'done'
+       exit 0
+
 #Compatibility with the old make variables, anything you specify directly on the command line
 # always overrides the detected folders
 ifdef keyboard