diff options
author | Dmitry Filimonchuk <dmitrystu@gmail.com> | 2020-07-07 23:53:50 +0300 |
---|---|---|
committer | Dmitry Filimonchuk <dmitrystu@gmail.com> | 2020-07-07 23:53:50 +0300 |
commit | bf2314ef079e86e55621325539b3625e2ebc6f77 (patch) | |
tree | 2bb5969b3699c3abdb4075fa86aadf314f716134 | |
parent | e47945e9fda8bb589765cf176b58c34e01e92425 (diff) |
fix error with existed $CMSIS folder
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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' \ |