-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (31 loc) · 875 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# AVR Multi Motor Control -- Paolo Lucchesi
# Global Makefile
.POSIX:
.SUFFIXES: # Reset all implicit rules
all:
$(MAKE) --directory=client/
$(MAKE) --directory=master/
$(MAKE) --directory=slave/
client:
$(MAKE) --directory=client/
master:
$(MAKE) --directory=master/
slave:
$(MAKE) --directory=slave/
master-flash:
$(MAKE) --directory=master flash
slave-flash:
$(MAKE) --directory=slave flash
install:
$(MAKE) --directory=client/ install
install-docs:
install -m 0644 resources/man/ammc.1.gz /usr/share/man/man1/
docs: resources/man/ammc.1.gz ;
resources/man/%.gz: resources/man/%.md
pandoc --standalone --to man $< | gzip --stdout - > $@
clean:
$(MAKE) --directory=client/ clean
$(MAKE) --directory=master/ clean
$(MAKE) --directory=slave/ clean
.PHONY: clean all client master slave client-install master-flash slave-flash \
docs install-docs