Add snap target to Makefile

This commit is contained in:
David Bliss 2018-02-16 16:14:57 +00:00 committed by Mike Farah
parent e6ee86930b
commit d30cd8cc75

View File

@ -14,6 +14,7 @@ help:
@echo ' make build Build yq binary.'
@echo ' make install Install yq.'
@echo ' make xcompile Build cross-compiled binaries of yq.'
@echo ' make snap Build a snap package of yq.'
@echo ' make vendor Install dependencies using govendor.'
@echo ' make format Run code formatter.'
@echo ' make check Run static code analysis (lint).'
@ -64,6 +65,10 @@ xcompile: check
@find build -type d -exec chmod 755 {} \; || :
@find build -type f -exec chmod 755 {} \; || :
.PHONY: snap
snap:
snapcraft
.PHONY: install
install: build
${DOCKRUN} go install