mirror of
https://github.com/eosswedenorg/eosio-unpack-abi
synced 2026-08-30 21:28:13 +02:00
initial commit
This commit is contained in:
commit
e25f1b9aa5
7 changed files with 346 additions and 0 deletions
32
Makefile
Normal file
32
Makefile
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
|
||||
GO=go
|
||||
OUTDIR=build
|
||||
|
||||
NAME ?= eosio-unpack-abi
|
||||
DESCRIPTION ?= Unpacks eosio's binary ABI to human readable JSON
|
||||
VERSION ?= 0.1
|
||||
PREFIX ?= /usr/local
|
||||
BINDIR ?= $(PREFIX)/bin
|
||||
SHAREDIR ?= $(PREFIX)/share/$(NAME)
|
||||
|
||||
.PHONY: build install deb clean
|
||||
|
||||
build :
|
||||
mkdir -p $(OUTDIR)
|
||||
$(GO) build -o $(OUTDIR) .
|
||||
|
||||
install : build
|
||||
install -t $(BINDIR) $(OUTDIR)/eosio-unpack-abi
|
||||
install -t $(SHAREDIR) LICENSE
|
||||
|
||||
deb : build
|
||||
export PACKAGE_NAME=$(NAME) \
|
||||
&& export PACKAGE_VERSION=$(VERSION) \
|
||||
&& export PACKAGE_DESCRIPTION="$(DESCRIPTION)" \
|
||||
&& export PACKAGE_BINDIR=$(BINDIR:/%=%) \
|
||||
&& export PACKAGE_SHAREDIR=$(SHAREDIR:/%=%) \
|
||||
&& export PACKAGE_BASE_DIR=$(OUTDIR) \
|
||||
&& /bin/bash scripts/build_deb.sh
|
||||
|
||||
clean :
|
||||
$(RM) -r $(OUTDIR)
|
||||
Loading…
Add table
Add a link
Reference in a new issue