Commit | Line | Data |
---|---|---|
172d42d9 AG |
1 | #!/usr/bin/make |
2 | ||
3 | DIRS = mbed src | |
4 | DIRSCLEAN = $(addsuffix .clean,$(DIRS)) | |
5 | ||
68b4aa4d | 6 | all: |
68b4aa4d AG |
7 | @ $(MAKE) -C mbed |
8 | @echo Building Smoothie | |
9 | @ $(MAKE) -C src | |
172d42d9 AG |
10 | |
11 | clean: $(DIRSCLEAN) | |
12 | ||
172d42d9 AG |
13 | $(DIRSCLEAN): %.clean: |
14 | @echo Cleaning $* | |
15 | @ $(MAKE) -C $* clean | |
16 | ||
17 | debug-store: | |
18 | @ $(MAKE) -C src debug-store | |
19 | ||
20 | flash: | |
21 | @ $(MAKE) -C src flash | |
22 | ||
23 | dfu: | |
24 | @ $(MAKE) -C src dfu | |
25 | ||
26 | upload: | |
27 | @ $(MAKE) -C src upload | |
28 | ||
29 | debug: | |
30 | @ $(MAKE) -C src debug | |
31 | ||
32 | console: | |
33 | @ $(MAKE) -C src console | |
34 | ||
35 | .PHONY: all $(DIRS) $(DIRSCLEAN) debug-store flash upload debug console dfu |