-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 823 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 823 Bytes
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
SHELL := /bin/sh
COLCON_DIRS := build install log src/build src/install src/log
.PHONY: help build clean clean-colcon clean-pycache clean-logs
help:
@printf "%s\n" \
"make clean Remove colcon build artifacts, python caches, temp/log files"
build:
@echo "Build target - not implemented"
colcon build
clean:
@$(MAKE) clean-colcon
@$(MAKE) clean-pycache
@$(MAKE) clean-logs
clean-colcon:
rm -rf $(COLCON_DIRS)
clean-pycache:
find . -type d -name '__pycache__' -prune -exec rm -rf {} +
find . -type d -name '.pytest_cache' -prune -exec rm -rf {} +
find . -type f -name '*.py[co]' -delete
find . -type f -name '*$py.class' -delete
find . -type f -name '.Python' -delete
clean-logs:
find . -type f -name '*.log' -delete
find . -type f -name '*.tmp' -delete
find . -type f -name '*.bak' -delete