forked from mitchellh/gon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
31 lines (24 loc) · 846 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# release will package the distribution packages, sign, and notarize. It
# will then upload the release to GitHub and publish the Homebrew tap.
#
# AFTER THIS YOU MUST MANUALLY DELETE the checksums.txt file since it is
# incomplete and we don't need checksums since our artifacts are signed.
release:
goreleaser --rm-dist
.PHONY: release
clean:
rm -rf dist/
.PHONY: clean
# Update the TOC in the README.
readme/toc:
doctoc --notitle README.md
.PHONY: readme/toc
vendor: vendor/create-dmg
vendor/create-dmg:
rm -rf vendor/create-dmg
git clone https://github.com/andreyvit/create-dmg vendor/create-dmg
# Checkout to the latest tag
$(eval LATEST_TAG := $(shell git --git-dir=vendor/create-dmg/.git describe --first-parent --tags --abbrev=0))
cd vendor/create-dmg && \
git reset --hard "$(LATEST_TAG)"
rm -rf vendor/create-dmg/.git