Do not download/build/clean libopencm3 directory when compiling for PC-hosted platforms.
This commit is contained in:
parent
8f6b266c54
commit
d98703e022
12
Makefile
12
Makefile
@ -3,16 +3,28 @@ MFLAGS += --no-print-dir
|
|||||||
Q := @
|
Q := @
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
PC_HOSTED =
|
||||||
|
ifeq ($(PROBE_HOST), libftdi)
|
||||||
|
PC_HOSTED = true
|
||||||
|
endif
|
||||||
|
ifeq ($(PROBE_HOST), pc-stlinkv2)
|
||||||
|
PC_HOSTED = true
|
||||||
|
endif
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
ifndef PC_HOSTED
|
||||||
$(Q)if [ ! -f libopencm3/Makefile ]; then \
|
$(Q)if [ ! -f libopencm3/Makefile ]; then \
|
||||||
echo "Initialising git submodules..." ;\
|
echo "Initialising git submodules..." ;\
|
||||||
git submodule init ;\
|
git submodule init ;\
|
||||||
git submodule update ;\
|
git submodule update ;\
|
||||||
fi
|
fi
|
||||||
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 lib
|
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 lib
|
||||||
|
endif
|
||||||
$(Q)$(MAKE) $(MFLAGS) -C src
|
$(Q)$(MAKE) $(MFLAGS) -C src
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
ifndef PC_HOSTED
|
||||||
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 $@
|
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 $@
|
||||||
|
endif
|
||||||
$(Q)$(MAKE) $(MFLAGS) -C src $@
|
$(Q)$(MAKE) $(MFLAGS) -C src $@
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user