updated makefile
This commit is contained in:
parent
b8fed4fb23
commit
77126a8dc6
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,7 +2,7 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
*$py.class
|
*$py.class
|
||||||
|
logfile
|
||||||
# C extensions
|
# C extensions
|
||||||
*.so
|
*.so
|
||||||
|
|
||||||
|
17
Makefile
17
Makefile
@ -1,11 +1,12 @@
|
|||||||
BRANCH ?= main
|
BRANCH ?= main
|
||||||
|
|
||||||
update_and_build:
|
update_and_build:
|
||||||
@git fetch
|
@git fetch
|
||||||
@if [ "`git rev-list HEAD...origin/$(BRANCH) --count`" -ne "0" ]; then \
|
@if [ "`git rev-list HEAD...origin/$(BRANCH) --count`" -ne "0" ]; then \
|
||||||
echo "Updates found. Pulling changes and building..."; \
|
echo "Updates found. Pulling changes and building..."; \
|
||||||
git pull; \
|
git pull; \
|
||||||
docker run --rm -it -v ${PWD}:/docs squidfunk/mkdocs-material build; \
|
docker run --rm -it -v ${PWD}:/docs squidfunk/mkdocs-material build; \
|
||||||
else \
|
else \
|
||||||
echo "No updates. Skipping build."; \
|
echo "No updates. Skipping build."; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user