31 lines
727 B
Makefile
31 lines
727 B
Makefile
|
|
.PHONY: ;
|
|
.ONESHELL: ; # recipes execute in same shell
|
|
.NOTPARALLEL: ; # wait for this target to finish
|
|
.EXPORT_ALL_VARIABLES: ; # send all vars to shell
|
|
.DEFAULT_GOAL := help
|
|
|
|
UID := $(shell id -u)
|
|
GID := $(shell id -g)
|
|
|
|
all: pull build chown
|
|
watch:
|
|
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
|
|
pull:
|
|
docker pull squidfunk/mkdocs-material
|
|
chown:
|
|
chown -R $(UID):$(GID) .
|
|
build:
|
|
docker run --rm -it -v ~/.ssh:/root/.ssh -v ${PWD}:/docs squidfunk/mkdocs-material build
|
|
clean:
|
|
rm -rf ./env ./site
|
|
|
|
help:
|
|
@echo "=== Project build help ==="
|
|
@echo ""
|
|
@echo "These targets are available:"
|
|
@echo "- watch"
|
|
@echo "- pull"
|
|
@echo "- chown"
|
|
@echo "- build"
|
|
@echo "- clean"
|