Lite wallet server https://hush.is
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.4 KiB

# Copyright (c) 2021-2024 Jahway603 & The Hush Developers
3 years ago
# Released under the GPLv3
#
# Hush Lightwalletd Makefile
# author: jahway603
#
.PHONY: format help
# Help system from https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.DEFAULT_GOAL := help
3 years ago
PROJECT_NAME := "lightwalletd"
GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
3 years ago
build: ## Build binary for amd64 (x86_64) architecture
3 years ago
./util/build.sh
build-arm: ## Build binary for ARM architecture (aarch64)
GOOS=linux GOARCH=arm64 ./util/build.sh
protobuf: ## Generate protobuf shizzle
cd walletrpc && protoc --go_out=paths=source_relative:. service.proto compact_formats.proto && protoc --go-grpc_out=paths=source_relative:. service.proto
# Stop the hushd process in the hushdlwd container
#docker_img_stop_hushd:
# docker exec -i hushdlwd hush-cli stop
# Remove and delete ALL images and containers in Docker; assumes containers are stopped
#docker_remove_all:
# docker system prune -f
dep: ## Pull dependencies (if needed)
@go get -v -d ./...
vendor: ## Pull vendor files locally (if needed)
go mod tidy && go mod vendor
clean: ## Clean the project
@echo "Cleaning project $(PROJECT_NAME) files..."
3 years ago
rm -f $(PROJECT_NAME)
rm -rf /tmp/$(PROJECT_NAME)-*