Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flipperdevices/libusb_stm32.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Filimonchuk <dmitrystu@gmail.com>2020-07-07 23:53:50 +0300
committerDmitry Filimonchuk <dmitrystu@gmail.com>2020-07-07 23:53:50 +0300
commitbf2314ef079e86e55621325539b3625e2ebc6f77 (patch)
tree2bb5969b3699c3abdb4075fa86aadf314f716134
parente47945e9fda8bb589765cf176b58c34e01e92425 (diff)
fix error with existed $CMSIS folder
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 17dd403..6ee2832 100644
--- a/Makefile
+++ b/Makefile
@@ -72,10 +72,13 @@ help all:
@echo ' make bluepill program'
@echo ' make module MODULE="usbd.a" CFLAGS="-mcpu=cotrex-m4" DEFINES="STM32L4 STM32L476xx USBD_VBUS_DETECT"'
-.PHONY: cmsis
-cmsis:
- @git clone --depth 1 https://github.com/ARM-software/CMSIS_5.git $(CMSIS)
- @git clone --recurse-submodules --depth 1 https://github.com/dmitrystu/stm32h.git $(CMSISDEV)/ST
+cmsis: $(CMSISDEV)/ST
+
+$(CMSISDEV)/ST: $(CMSIS)
+ @git clone --recurse-submodules --depth 1 https://github.com/dmitrystu/stm32h.git $@
+
+$(CMSIS):
+ @git clone --depth 1 https://github.com/ARM-software/CMSIS_5.git $@
$(OBJDIR):
@mkdir $@
@@ -128,7 +131,7 @@ $(OBJDIR)/%.o: %.s
@echo assembling $<
@$(CC) $(CFLAGS2) $(addprefix -D, $(DEFINES)) $(addprefix -I, $(INCLUDES)) -c $< -o $@
-.PHONY: module doc demo clean program help all program_stcube
+.PHONY: module doc demo clean program help all program_stcube cmsis
stm32f103x6 bluepill: clean
@$(MAKE) demo STARTUP='$(CMSISDEV)/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103x6.s' \