From 77126a8dc678fecd9b1756fef14154ecfafdac51 Mon Sep 17 00:00:00 2001 From: locker98 Date: Mon, 16 Dec 2024 09:59:30 -0500 Subject: [PATCH] updated makefile --- .gitignore | 2 +- Makefile | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 82f9275..0041f36 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ __pycache__/ *.py[cod] *$py.class - +logfile # C extensions *.so diff --git a/Makefile b/Makefile index 3b3b3a7..ff3057d 100644 --- a/Makefile +++ b/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 +