updated makefile
This commit is contained in:
parent
b8fed4fb23
commit
77126a8dc6
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,7 +2,7 @@
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
|
||||
logfile
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
|
17
Makefile
17
Makefile
@ -1,11 +1,12 @@
|
||||
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
|
||||
@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