forked from carla-simulator/ros-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (14 loc) · 656 Bytes
/
Makefile
File metadata and controls
20 lines (14 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
file_finder = find . -type f $(1) -not \( -path './venv/*' -o -path './carla_msgs/*' -o -path './packaging/build/*' -o -path './build/*' -o -path './log/*' -o -path './install/*' \)
CMAKE_FILES = $(call file_finder,\( -name "*.cmake" -o -name "CMakeLists.txt" \))
PY_FILES = $(call file_finder,-name "*.py")
check: check_format pylint
format:
$(PY_FILES) | xargs autopep8 --in-place --max-line-length=100
$(CMAKE_FILES) | xargs cmake-format -i
check_format:
$(PY_FILES) | xargs autopep8 --diff --max-line-length=100
$(CMAKE_FILES) | xargs cmake-format --check
pylint:
$(PY_FILES) | xargs pylint --rcfile=.pylintrc
deb:
./packaging/build-deb.sh