From 0c352490fab31b65282b29964591472aa7f2b307 Mon Sep 17 00:00:00 2001 From: saattrupdan Date: Mon, 15 Jul 2024 16:52:23 +0200 Subject: [PATCH] fix: Backslashes in makefile --- {{cookiecutter.project_name}}/makefile | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/{{cookiecutter.project_name}}/makefile b/{{cookiecutter.project_name}}/makefile index cb8b0c5..0bce5fc 100644 --- a/{{cookiecutter.project_name}}/makefile +++ b/{{cookiecutter.project_name}}/makefile @@ -78,12 +78,12 @@ install-gpg: case $${uname} in \ (*Linux*) distro=$$(lsb_release -i | sed 's/Distributor ID:\t//'); \ case $${distro} in \ - (*Ubuntu*) installCmd='apt-get update && apt-get install -y gnupg gpg-agent'; ;; \ - (*CentOS*) installCmd='yum install -y gnupg gpg-agent'; ;; \ - (*) echo 'Could not automatically install gnupg for the $${distro} distribution. Please manually install gnupg and try again.'; exit 2; ;; \ - esac; ;; \ - (*Darwin*) installCmd='brew install gnupg pinentry-mac'; ;; \ - (*) echo 'Could not automatically install gnupg. Please manually install gnupg and try again.'; exit 2; ;; \ + (*Ubuntu*) installCmd='apt-get update && apt-get install -y gnupg gpg-agent'; \ + (*CentOS*) installCmd='yum install -y gnupg gpg-agent'; \ + (*) echo 'Could not automatically install gnupg for the $${distro} distribution. Please manually install gnupg and try again.'; exit 2; \ + esac; \ + (*Darwin*) installCmd='brew install gnupg pinentry-mac'; \ + (*) echo 'Could not automatically install gnupg. Please manually install gnupg and try again.'; exit 2; \ esac; \ "$${installCmd}"; \ echo "Installed gnupg."; \ @@ -102,9 +102,9 @@ install-pipx: @if [ "$(shell which pipx)" = "" ]; then \ uname=$$(uname); \ case $${uname} in \ - (*Darwin*) installCmd='brew install pipx'; ;; \ - (*CYGWIN*) installCmd='py -3 -m pip install --upgrade --user pipx'; ;; \ - (*) installCmd='python3 -m pip install --upgrade --user pipx'; ;; \ + (*Darwin*) installCmd='brew install pipx'; \ + (*CYGWIN*) installCmd='py -3 -m pip install --upgrade --user pipx'; \ + (*) installCmd='python3 -m pip install --upgrade --user pipx'; \ esac; \ $${installCmd}; \ pipx ensurepath --force; \ @@ -113,8 +113,8 @@ install-pipx: install-poetry: @if [ ! "$(shell poetry --version)" = "Poetry (version 1.8.2)" ]; then \ - python3 -m pip uninstall -y poetry poetry-core poetry-plugin-export; - pipx install --force poetry==1.8.2; + python3 -m pip uninstall -y poetry poetry-core poetry-plugin-export; \ + pipx install --force poetry==1.8.2; \ echo "Installed Poetry."; fi {% endif -%} @@ -183,10 +183,10 @@ view-docs: ## View documentation @echo "Viewing API documentation..." @uname=$$(uname); \ case $${uname} in \ - (*Linux*) openCmd='xdg-open'; ;; \ - (*Darwin*) openCmd='open'; ;; \ - (*CYGWIN*) openCmd='cygstart'; ;; \ - (*) echo 'Error: Unsupported platform: $${uname}'; exit 2; ;; \ + (*Linux*) openCmd='xdg-open'; \ + (*Darwin*) openCmd='open'; \ + (*CYGWIN*) openCmd='cygstart'; \ + (*) echo 'Error: Unsupported platform: $${uname}'; exit 2; \ esac; \ "$${openCmd}" docs/{{ cookiecutter.project_name }}.html