aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-02-05 10:06:08 +1100
committerDrashna Jaelre <drashna@live.com>2019-02-05 09:49:24 -0800
commit612dc232d7e1e88dcd21be09eb32ef7099af854a (patch)
treea185c40da0c010ec6626cea46004c49ba090a3a6 /Makefile
parent6172273c866637c06150647cacf1477d8c8075c9 (diff)
downloadqmk_firmware-612dc232d7e1e88dcd21be09eb32ef7099af854a.tar.gz
qmk_firmware-612dc232d7e1e88dcd21be09eb32ef7099af854a.zip
Add distclean target instead
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index c7dda23dc..610f53b4d 100644
--- a/Makefile
+++ b/Makefile
@@ -115,7 +115,6 @@ $(eval $(call GET_KEYBOARDS))
115.PHONY: list-keyboards 115.PHONY: list-keyboards
116list-keyboards: 116list-keyboards:
117 echo $(KEYBOARDS) 117 echo $(KEYBOARDS)
118 exit 0
119 118
120define PRINT_KEYBOARD 119define PRINT_KEYBOARD
121 $(info $(PRINTING_KEYBOARD)) 120 $(info $(PRINTING_KEYBOARD))
@@ -124,16 +123,18 @@ endef
124.PHONY: generate-keyboards-file 123.PHONY: generate-keyboards-file
125generate-keyboards-file: 124generate-keyboards-file:
126 $(foreach PRINTING_KEYBOARD,$(KEYBOARDS),$(eval $(call PRINT_KEYBOARD))) 125 $(foreach PRINTING_KEYBOARD,$(KEYBOARDS),$(eval $(call PRINT_KEYBOARD)))
127 exit 0
128 126
129.PHONY: clean 127.PHONY: clean
130clean: 128clean:
131 echo 'Deleting .build/ ...' 129 echo -n 'Deleting .build/ ... '
132 rm -rf $(BUILD_DIR) 130 rm -rf $(BUILD_DIR)
133 echo 'Deleting *.bin and *.hex ...' 131 echo 'done.'
132
133.PHONY: distclean
134distclean: clean
135 echo -n 'Deleting *.bin and *.hex ... '
134 rm -f *.bin *.hex 136 rm -f *.bin *.hex
135 echo 'Done.' 137 echo 'done.'
136 exit 0
137 138
138#Compatibility with the old make variables, anything you specify directly on the command line 139#Compatibility with the old make variables, anything you specify directly on the command line
139# always overrides the detected folders 140# always overrides the detected folders