2015-03-07 18:32:52 +00:00
|
|
|
ifneq ($(V), 1)
|
|
|
|
MFLAGS += --no-print-dir
|
|
|
|
Q := @
|
|
|
|
endif
|
|
|
|
|
2012-10-22 05:50:06 +00:00
|
|
|
all:
|
2015-03-07 18:32:52 +00:00
|
|
|
$(Q)if [ ! -f libopencm3/Makefile ]; then \
|
2015-03-06 06:17:22 +00:00
|
|
|
echo "Initialising git submodules..." ;\
|
|
|
|
git submodule init ;\
|
|
|
|
git submodule update ;\
|
|
|
|
fi
|
2015-03-07 18:32:52 +00:00
|
|
|
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 lib
|
|
|
|
$(Q)$(MAKE) $(MFLAGS) -C src
|
2012-10-22 05:50:06 +00:00
|
|
|
|
2015-03-07 18:32:52 +00:00
|
|
|
clean:
|
|
|
|
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 $@
|
|
|
|
$(Q)$(MAKE) $(MFLAGS) -C src $@
|
2012-10-22 05:50:06 +00:00
|
|
|
|