Create Makefile
This commit is contained in:
parent
68d8e30395
commit
b8fed4fb23
11
Makefile
Normal file
11
Makefile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
BRANCH ?= main
|
||||||
|
|
||||||
|
update_and_build:
|
||||||
|
@git fetch
|
||||||
|
@if [ "`git rev-list HEAD...origin/$(BRANCH) --count`" -ne "0" ]; then \
|
||||||
|
echo "Updates found. Pulling changes and building..."; \
|
||||||
|
git pull; \
|
||||||
|
docker run --rm -it -v ${PWD}:/docs squidfunk/mkdocs-material build; \
|
||||||
|
else \
|
||||||
|
echo "No updates. Skipping build."; \
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user