forked from monome/teletype
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
38 lines (28 loc) · 809 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
.PHONY: release format \
clean clean-docs clean-module clean-simulator clean-tests clean-zip
release: teletype.zip
clean: clean-docs clean-module clean-simulator clean-tests
clean-docs:
cd docs && make clean && cd ..
clean-module:
cd module && make clean && cd ..
clean-simulator:
cd simulator && make clean && cd ..
clean-tests:
cd tests && make clean && cd ..
clean-zip:
rm -f teletype.zip
teletype.zip: clean-zip
cd module && make && cd .. && \
cd docs && make && cd .. && \
zip -j teletype.zip \
module/teletype.hex \
module/flash.sh \
module/update_firmware.command \
docs/teletype.pdf \
docs/teletype.html \
docs/cheatsheet/cheatsheet.pdf
format:
git-clang-format -f --style=file
format-all:
find . -type f -name "*.c" -o -name "*.h" | xargs clang-format -style=file -i