]> git.sommitrealweird.co.uk Git - barbilliards.git/blob - Makefile
Initial commit of code
[barbilliards.git] / Makefile
1 ifneq ($(V), 1)
2 MFLAGS += --no-print-dir
3 Q := @
4 endif
5
6 all:
7         $(Q)if [ ! -f libopencm3/Makefile ]; then \
8                 echo "Initialising git submodules..." ;\
9                 git submodule init ;\
10                 git submodule update ;\
11         fi
12         $(Q)$(MAKE) $(MFLAGS) -C libopencm3 lib
13         $(Q)$(MAKE) $(MFLAGS) -C src
14
15 clean:
16         $(Q)$(MAKE) $(MFLAGS) -C libopencm3 $@
17         $(Q)$(MAKE) $(MFLAGS) -C src $@
18