diff options
author | Sebastian <sebb@sebb767.de> | 2018-03-06 20:42:38 +0100 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-03-16 16:44:22 -0400 |
commit | ce3adcd6e19ca2e3b537ab874487e9d022b8e88f (patch) | |
tree | 9652c3dc11c46dfc608ee53cc1b9e7a6bbb59fe9 | |
parent | 3acaad66005718ab50a46ae375636f328a93b100 (diff) | |
download | qmk_firmware-ce3adcd6e19ca2e3b537ab874487e9d022b8e88f.tar.gz qmk_firmware-ce3adcd6e19ca2e3b537ab874487e9d022b8e88f.zip |
Added a clean target to remove build artifacts
This commit adds a new clean target to the makefile which deletes
the .build directory which removes all build artifacts.
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -124,6 +124,12 @@ generate-keyboards-file: | |||
124 | $(foreach PRINTING_KEYBOARD,$(KEYBOARDS),$(eval $(call PRINT_KEYBOARD))) | 124 | $(foreach PRINTING_KEYBOARD,$(KEYBOARDS),$(eval $(call PRINT_KEYBOARD))) |
125 | exit 0 | 125 | exit 0 |
126 | 126 | ||
127 | clean: | ||
128 | echo -n 'Deleting .build ... ' | ||
129 | rm -rf $(BUILD_DIR) | ||
130 | echo 'done' | ||
131 | exit 0 | ||
132 | |||
127 | #Compatibility with the old make variables, anything you specify directly on the command line | 133 | #Compatibility with the old make variables, anything you specify directly on the command line |
128 | # always overrides the detected folders | 134 | # always overrides the detected folders |
129 | ifdef keyboard | 135 | ifdef keyboard |