Skip to content

Commit

Permalink
fix: Backslashes in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Jul 15, 2024
1 parent a631fa0 commit 0c35249
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions {{cookiecutter.project_name}}/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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."; \
Expand All @@ -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; \
Expand All @@ -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 -%}
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 0c35249

Please sign in to comment.