##
## Copyright (c) 2022 - Team11. All rights reserved.
##

all: build

build: install
	npx hardhat --version
# The 'echo n' command is used to suppress message:
# "Help us improve Hardhat with anonymous crash reports & basic usage data?"
	echo n | npx hardhat compile --force --quiet --no-typechain --show-stack-traces

install: node_modules

node_modules: package.json
	npm install

test:
	npm run test --force --quiet --no-typechain --show-stack-traces

clean:
	-@rm -rf ./artifacts
	-@rm -rf ./cache
	-@rm -rf ./docs
	-@rm -rf ./typechain

distclean: clean
	-@rm -rf ./package-lock.json
	-@rm -rf ./node_modules

.PHONY: all build install test clean distclean

.SILENT: clean distclean
