# Copyright (c) 2021 Jahway603 & The Hush Developers
# Copyright (c) 2024-2026 The DragonX Developers
# Released under the GPLv3
#
# DragonX Lightwalletd Makefile
# author: jahway603
# 
PROJECT_NAME := "lightwalletd"
GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet

#.PHONY: build

build:
	# Build binary
	./util/build.sh

build-arm:
	# Build binary for ARM architecture (aarch64)
	./util/build_arm.sh

# Stop the dragonxd process in the container
#docker_img_stop_dragonxd:
#	docker exec -i dragonxdlwd dragonx-cli stop

# Remove and delete ALL images and containers in Docker; assumes containers are stopped
#docker_remove_all:
#	docker system prune -f

clean:
	@echo "Cleaning project $(PROJECT_NAME) files..."
	rm -f $(PROJECT_NAME)
	rm -rf /tmp/$(PROJECT_NAME)-*
