From 50f300e9cbf9e8057078aab73deda5892e3f7536 Mon Sep 17 00:00:00 2001 From: Riley Martine Date: Sun, 19 Feb 2023 01:44:22 -0700 Subject: [PATCH] Update makefile --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 07beeb9..bac548b 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,6 @@ SHELL=/bin/bash GO_FILES := $(shell find . -type f -name '*.go') -# https://stackoverflow.com/questions/6273608/how-to-pass-argument-to-makefile-from-command-line -args = `arg="$(filter-out $@,$(MAKECMDGOALS))" && echo $${arg}` all: completions/sundial.fish completions/sundial.zsh completions/sundial.bash completions/sundial.ps1 internal/core/cities.csv sundial @@ -34,6 +32,7 @@ clean: rm -f internal/core/cities.csv rm -f sundial +# https://stackoverflow.com/questions/6273608/how-to-pass-argument-to-makefile-from-command-line # Update files that aren't necessary to re-generate # But should be re-generated occasionally release: all @@ -44,7 +43,7 @@ release: all git add -A git diff-index --quiet HEAD -- || git commit -m "Update go packages" git push - git tag $(call args) + git tag $(filter-out $@,$(MAKECMDGOALS)) git push --tags gorelease: all