Makefile: allow target for creating release archive

It contains only *.nef and *.json files.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-07-29 18:09:24 +03:00 committed by Alex Vanin
parent f664595001
commit e779f436b2

View file

@ -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')