aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 358c6870ed2d8b332767d7e2efc3743c294979a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 $@