1
0
Fork 0

These targets should be .PHONY

This commit is contained in:
fauxpark 2019-02-03 01:26:35 +11:00 committed by Drashna Jaelre
parent cb1aeb4254
commit 6172273c86

View file

@ -112,6 +112,7 @@ $(eval $(call GET_KEYBOARDS))
# Only consider folders with makefiles, to prevent errors in case there are extra folders # Only consider folders with makefiles, to prevent errors in case there are extra folders
#KEYBOARDS += $(patsubst $(ROOD_DIR)/keyboards/%/rules.mk,%,$(wildcard $(ROOT_DIR)/keyboards/*/*/rules.mk)) #KEYBOARDS += $(patsubst $(ROOD_DIR)/keyboards/%/rules.mk,%,$(wildcard $(ROOT_DIR)/keyboards/*/*/rules.mk))
.PHONY: list-keyboards
list-keyboards: list-keyboards:
echo $(KEYBOARDS) echo $(KEYBOARDS)
exit 0 exit 0
@ -120,10 +121,12 @@ define PRINT_KEYBOARD
$(info $(PRINTING_KEYBOARD)) $(info $(PRINTING_KEYBOARD))
endef endef
.PHONY: generate-keyboards-file
generate-keyboards-file: generate-keyboards-file:
$(foreach PRINTING_KEYBOARD,$(KEYBOARDS),$(eval $(call PRINT_KEYBOARD))) $(foreach PRINTING_KEYBOARD,$(KEYBOARDS),$(eval $(call PRINT_KEYBOARD)))
exit 0 exit 0
.PHONY: clean
clean: clean:
echo 'Deleting .build/ ...' echo 'Deleting .build/ ...'
rm -rf $(BUILD_DIR) rm -rf $(BUILD_DIR)
@ -579,6 +582,7 @@ lib/%:
git submodule sync $? git submodule sync $?
git submodule update --init $? git submodule update --init $?
.PHONY: git-submodule
git-submodule: git-submodule:
git submodule sync --recursive git submodule sync --recursive
git submodule update --init --recursive --progress git submodule update --init --recursive --progress