forked from CommunityGD32Cores/ArduinoCore-GD32
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (25 loc) · 777 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
.PHONY: astyle
default:
# The default target does nothing
@exit 0
astyle:
astyle --options=.astylerc \
--suffix=none \
--exclude=cores/arduino/api \
--recursive "cores/*.c,*.cpp,*.h"
astyle --options=.astylerc \
--suffix=none \
--recursive "libraries/*.c,*.cpp,*.h"
update-submodules: checkout-submodules
@echo "Kaleidoscope has been updated from GitHub"
checkout-submodules: git-pull
git submodule update --init --recursive
maintainer-update-submodules:
git submodule update --recursive --remote --init
git submodule foreach git checkout master
git submodule foreach git pull origin master
git-pull:
git pull
blindly-commit-updates: git-pull maintainer-update-submodules
git commit -a -m 'Blindly pull all submodules up to current'
git push