Create Makefile

This commit is contained in:
locker98 2024-12-16 09:47:21 -05:00 committed by GitHub
parent 68d8e30395
commit b8fed4fb23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

11
Makefile Normal file
View 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