Skip to content

Commit

Permalink
crimes
Browse files Browse the repository at this point in the history
  • Loading branch information
riley-martine committed Feb 19, 2023
1 parent 56c9897 commit d6364c0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ all: completions/sundial.fish completions/sundial.zsh completions/sundial.bash c
internal/core/cities.csv: scripts/makecsv.sh scripts/trim_csv.py
scripts/makecsv.sh

sundial: $(GO_FILES) internal/core/cities.csv
sundial: go.mod go.sum $(GO_FILES) internal/core/cities.csv
go build

completions/sundial.fish: sundial
Expand All @@ -33,15 +33,18 @@ clean:
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
# This is crimes
release: all
git status
git diff-index --quiet HEAD --
make clean all
git add -A
git diff-index --quiet HEAD -- || git commit -m "Update auto-generated files"
go mod tidy
go mod vendor
git add -A
git diff-index --quiet HEAD -- || git commit -m "Update go packages"
make
git push
git tag $(filter-out $@,$(MAKECMDGOALS))
git push --tags
Expand Down

0 comments on commit d6364c0

Please sign in to comment.