2024-12-16 14:47:21 +00:00
|
|
|
BRANCH ?= main
|
|
|
|
|
|
|
|
update_and_build:
|
2024-12-16 14:59:30 +00:00
|
|
|
@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
|
|
|
|
|