documentation/Makefile

32 lines
739 B
Makefile
Raw Normal View History

2021-10-02 23:42:17 +02:00
.PHONY: ;
.ONESHELL: ; # recipes execute in same shell
.NOTPARALLEL: ; # wait for this target to finish
.EXPORT_ALL_VARIABLES: ; # send all vars to shell
2022-07-17 12:36:22 +02:00
.DEFAULT_GOAL := help
2021-10-02 23:42:17 +02:00
UID := $(shell id -u)
GID := $(shell id -g)
all: pull deploy chown
watch:
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
pull:
docker pull squidfunk/mkdocs-material
chown:
sudo chown -R $(UID):$(GID) .
deploy:
2022-07-17 12:36:22 +02:00
docker run --rm -it -v ~/.ssh:/root/.ssh -v ${PWD}:/docs squidfunk/mkdocs-material gh-deploy
clean:
rm -rf ./env ./site
help:
@echo "=== Project build help ==="
@echo ""
@echo "These targets are available:"
@echo "- watch"
@echo "- pull"
@echo "- chown"
@echo "- deploy"
@echo "- clean"