forked from kanflo/opendps
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
25 lines (22 loc) · 594 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
$(Q)$(MAKE) $(MFLAGS) -C opendps
$(Q)$(MAKE) $(MFLAGS) -C dpsboot
$(Q)$(MAKE) $(MFLAGS) -C esp8266-proxy
clean:
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 $@
$(Q)$(MAKE) $(MFLAGS) -C opendps $@
$(Q)$(MAKE) $(MFLAGS) -C dpsboot $@
$(Q)$(MAKE) $(MFLAGS) -C esp8266-proxy $@
flash:
$(Q)$(MAKE) $(MFLAGS) -C opendps $@
$(Q)$(MAKE) $(MFLAGS) -C dpsboot $@