.PHONY: default metacryptor all clean fmt docker

GOBIN = $(shell pwd)/build/bin
GO ?= latest
GOFILES_NOVENDOR := $(shell go list -f "{{.Dir}}" ./...)

default: metacryptor

all: metacryptor metacryptor-ocl

metacryptor-ocl:
	go build -tags opencl -o=${GOBIN}/$@
	@echo "Done building."

metacryptor:
	go build -o=${GOBIN}/$@
	@echo "Done building."

clean:
	rm -fr build/*
docker:
	docker build -t cmpchain/metacryptor:latest .
