From e779f436b2643b6f1d61424cd6ae3d5a88edc907 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 29 Jul 2021 18:09:24 +0300 Subject: [PATCH] Makefile: allow target for creating release archive It contains only *.nef and *.json files. Signed-off-by: Evgenii Stratonikov --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 7915bbf..b039d81 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ SHELL=bash NEOGO?=neo-go +VERSION?=$(shell git describe --tags) .PHONY: all build sidechain build: all @@ -40,3 +41,8 @@ mr_proper: clean for sc in $(alphabet_sc); do\ rm -rf alphabet/$$sc; \ done + +archive: build + @tar --transform "s|^./|neofs-contract-$(VERSION)/|" \ + -czf neofs-contract-$(VERSION).tar.gz \ + $(shell find . -name '*.nef' -o -name 'config.json')