-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Makefile
60 lines (46 loc) · 1.64 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.PHONY: docs format-examples cloc travis-build build-examples build-boards build-tools update-travis update-ver spaces clean check
export ARDUINO_IDE_PATH=/data2/arduino-1.8.5
export ENERGIA_IDE_PATH=/data2/energia-1.6.10E18
docs:
doxygen extras/doxygen.config
format-examples:
find examples tests -name '*.ino' -exec astyle --options=extras/formatter.conf {} \;
cloc:
cloc ./
build-examples:
python extras/build-examples.py
build-boards:
python extras/build-boards.py
build-tools:
cd ./extras/ide-tools/; ./build.sh BlynkUpdater
cd ./extras/ide-tools/; ./build.sh BlynkUsbScript
spaces:
find ./src ./linux -name '*.cpp' -o -name '*.h' -exec sed -i 's/\t/ /g' {} \;
find ./examples ./tests -name '*.ino' -o -name '*.h' -exec sed -i 's/\t/ /g' {} \;
update-travis:
python extras/travis-generate.py > .travis.yml.new
meld .travis.yml .travis.yml.new
update-ver:
sed -i 's/"version": "[0-9\.]*"/"version": "$(VER)"/g' library.json
sed -i 's/version=[0-9\.]*/version=$(VER)/g' library.properties
sed -i 's/BLYNK_VERSION "[0-9\.]*"/BLYNK_VERSION "$(VER)"/g' src/Blynk/BlynkConfig.h
clean:
-rm .travis.yml.new
-find . -type f -name "*.orig" -exec rm -f {} \;
check: spaces format-examples
@echo '******************************************'
@echo ' Files with no "YourAuthToken":'
@echo '******************************************'
@find ./examples -name "*.ino" -exec grep -L "YourAuthToken" {} \;
travis-build:
ifdef PLATFORMIO_CI_SRC
-rm -rf ./linux
ifdef PLATFORMIO_CI_EXTRA_ARGS
platformio ci --lib="." $(PLATFORMIO_CI_EXTRA_ARGS)
else
platformio ci --lib="." --board=uno
endif
endif
ifdef LINUX_SRC
make -C $(LINUX_SRC)
endif