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