From b8fed4fb2368161cf56d061c089576c67afbb469 Mon Sep 17 00:00:00 2001 From: locker98 Date: Mon, 16 Dec 2024 09:47:21 -0500 Subject: [PATCH] Create Makefile --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3b3b3a7 --- /dev/null +++ b/Makefile @@ -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