blackmagic/Makefile

19 lines
355 B
Makefile

ifneq ($(V), 1)
MFLAGS += --no-print-dir
Q := @
endif
all:
$(Q)if [ ! -f libopencm3/Makefile ]; then \
echo "Initialising git submodules..." ;\
git submodule init ;\
git submodule update ;\
fi
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 lib
$(Q)$(MAKE) $(MFLAGS) -C src
clean:
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 $@
$(Q)$(MAKE) $(MFLAGS) -C src $@