blackmagic/Makefile

19 lines
355 B
Makefile
Raw Normal View History

2015-03-07 18:32:52 +00:00
ifneq ($(V), 1)
MFLAGS += --no-print-dir
Q := @
endif
all:
2015-03-07 18:32:52 +00:00
$(Q)if [ ! -f libopencm3/Makefile ]; then \
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
2015-03-07 18:32:52 +00:00
clean:
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 $@
$(Q)$(MAKE) $(MFLAGS) -C src $@