summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSebastian <sebb@sebb767.de>2018-03-06 20:42:38 +0100
committerJack Humbert <jack.humb@gmail.com>2018-03-16 16:44:22 -0400
commitce3adcd6e19ca2e3b537ab874487e9d022b8e88f (patch)
tree9652c3dc11c46dfc608ee53cc1b9e7a6bbb59fe9 /Makefile
parent3acaad66005718ab50a46ae375636f328a93b100 (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8350d5ce34..9ef82bbd3c 100644
--- 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