From d30cd8cc757621a0a7a8e051eac755ecb8c504f1 Mon Sep 17 00:00:00 2001 From: David Bliss Date: Fri, 16 Feb 2018 16:14:57 +0000 Subject: [PATCH] Add snap target to Makefile --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index d854d8fb..5d6c2e6d 100644 --- a/Makefile +++ b/Makefile @@ -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