update phony's
This commit is contained in:
parent
acdfc584b7
commit
ebd1a40e37
1 changed files with 5 additions and 4 deletions
9
Makefile
9
Makefile
|
@ -1,23 +1,24 @@
|
||||||
.PHONY: lint lint.py lint.sh
|
|
||||||
|
|
||||||
## lint | lint.*
|
## lint | lint.*
|
||||||
|
.PHONY: lint
|
||||||
lint: lint.py lint.sh
|
lint: lint.py lint.sh
|
||||||
|
|
||||||
## lint.python | lint python files
|
## lint.python | lint python files
|
||||||
|
.PHONY: lint.python
|
||||||
lint.python:
|
lint.python:
|
||||||
black $(shell find -type f -name "*.py")
|
black $(shell find -type f -name "*.py")
|
||||||
|
|
||||||
## lint.sh | lint shell files
|
## lint.sh | lint shell files
|
||||||
|
.PHONY: lint.sh
|
||||||
lint.sh:
|
lint.sh:
|
||||||
shfmt -s -w $(shell shfmt -f .)
|
shfmt -s -w $(shell shfmt -f .)
|
||||||
|
|
||||||
.PHONY: $(addprefix d-,b r build run)
|
|
||||||
|
|
||||||
## db, d-build | build docker image
|
## db, d-build | build docker image
|
||||||
|
.PHONY: db d-build
|
||||||
db d-build:
|
db d-build:
|
||||||
docker build -f docker/Dockerfile -t dots .
|
docker build -f docker/Dockerfile -t dots .
|
||||||
|
|
||||||
## dr, d-run | run docker image
|
## dr, d-run | run docker image
|
||||||
|
.PHONY: dr d-run
|
||||||
dr d-run:
|
dr d-run:
|
||||||
docker run --rm -it dots
|
docker run --rm -it dots
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue