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