mirror of
https://github.com/ldericher/autodoc.git
synced 2025-12-06 15:43:01 +00:00
24 lines
514 B
Makefile
24 lines
514 B
Makefile
|
|
image_tag = ldericher/autodoc
|
||
|
|
docker_build = docker build
|
||
|
|
docker_run = docker run --rm -it
|
||
|
|
examples_flags = -v "$(shell pwd)/examples:/data" -u "$(shell id -u):$(shell id -g)"
|
||
|
|
|
||
|
|
.PHONY: default
|
||
|
|
default:
|
||
|
|
$(info use other targets: image build watch clean)
|
||
|
|
|
||
|
|
.PHONY: image
|
||
|
|
image:
|
||
|
|
$(docker_build) --tag $(image_tag) ./
|
||
|
|
|
||
|
|
.PHONY: build
|
||
|
|
build: image
|
||
|
|
$(docker_run) $(examples_flags) $(image_tag) -b
|
||
|
|
|
||
|
|
.PHONY: watch
|
||
|
|
watch: image
|
||
|
|
$(docker_run) $(examples_flags) $(image_tag)
|
||
|
|
|
||
|
|
.PHONY: clean
|
||
|
|
clean:
|
||
|
|
git clean -xdf ./examples
|