documentation/Makefile

32 lines
732 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)
2022-07-17 12:55:00 +02:00
all: pull build chown
2021-10-02 23:42:17 +02:00
watch:
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
pull:
docker pull squidfunk/mkdocs-material
chown:
2022-07-17 13:12:35 +02:00
sudo chown -R $(UID):$(GID) .
2022-07-17 12:55:00 +02:00
build:
docker run --rm -it -v ~/.ssh:/root/.ssh -v ${PWD}:/docs squidfunk/mkdocs-material build
2022-07-17 12:36:22 +02:00
clean:
rm -rf ./env ./site
help:
@echo "=== Project build help ==="
@echo ""
@echo "These targets are available:"
@echo "- watch"
@echo "- pull"
@echo "- chown"
2022-07-17 12:55:00 +02:00
@echo "- build"
2022-07-17 12:36:22 +02:00
@echo "- clean"