-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
29 lines (24 loc) · 937 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
.PHONY: help clean install uninstall
help:
@echo "Please use \`make <target>' where <target> is one of:"
@echo " clean to remove build artifacts."
@echo " install pip install the crossplane-update command."
@echo " uninstall pip uninstall the crossplane-update command."
clean:
@rm -fr 'dist/'
@rm -fr 'build/'
@rm -fr '.cache/'
@rm -fr '.pytest_cache/'
@find . -path '*/.*' -prune -o -name '__pycache__' -exec rm -fr {} +
@find . -path '*/.*' -prune -o -name '*.egg-info' -exec rm -fr {} +
@find . -path '*/.*' -prune -o -name '*.py[co]' -exec rm -fr {} +
@find . -path '*/.*' -prune -o -name '*.build' -exec rm -fr {} +
@find . -path '*/.*' -prune -o -name '*.so' -exec rm -fr {} +
@find . -path '*/.*' -prune -o -name '*.c' -exec rm -fr {} +
@find . -path '*/.*' -prune -o -name '*~' -exec rm -fr {} +
install:
@make clean
pip install -e .
uninstall:
pip uninstall -y crossplane-update
@make clean