Skip to content

Commit

Permalink
[sw/ext] fix detection if submodules are already cloned
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Sep 5, 2012
1 parent 9134e87 commit f03b149
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sw/ext/Makefile
Expand Up @@ -48,7 +48,7 @@ endif
all: libopencm3.module stm32loader.module

libopencm3.module:
$(Q)if [ ! -f $(PAPARAZZI_SRC)/libopencm3/Makefile ]; then \
$(Q)if [ ! -f $(EXT_DIR)/libopencm3/Makefile ]; then \
cd $(PAPARAZZI_SRC); \
git submodule init; \
git submodule update; \
Expand All @@ -57,12 +57,12 @@ libopencm3.module:
make -C libopencm3 lib PREFIX=$(PREFIX)

stm32loader.module:
$(Q)if [ ! -f $(PAPARAZZI_SRC)/stm32loader/stm32loader/py ]; then \
cd $(PAPARAZZI_SRC); \
git submodule init; \
git submodule update; \
cd -; \
fi
$(Q)if [ ! -f $(EXT_DIR)/stm32loader/stm32loader.py ]; then \
cd $(PAPARAZZI_SRC); \
git submodule init; \
git submodule update; \
cd -; \
fi

clean:
if [ -f libopencm3/Makefile ]; then \
Expand Down

0 comments on commit f03b149

Please sign in to comment.