github.com/Bytom/bytom@v1.1.2-0.20210127130405-ae40204c0b09/equity/Makefile (about)

     1  PACKAGES    := $(shell go list ./... | grep -v '/vendor/')
     2  
     3  all: test equitycmd
     4  
     5  equitycmd:
     6  	@echo "Building equitycmd to compiler/cmd/equitycmd/equitycmd"
     7  	@go build -o compiler/cmd/equitycmd/equitycmd compiler/cmd/equitycmd/equitycmd.go
     8  
     9  tool:
    10  	@echo "Building equity to equity/equity"
    11  	@go build -o equity/equity equity/main.go
    12  
    13  clean:
    14  	@echo "Cleaning binaries built..."
    15  	@rm -rf compiler/cmd/equitycmd/equitycmd
    16  	@echo "Done."
    17  
    18  test:
    19  	@echo "====> Running go test"
    20  	@go test -tags "equity" $(PACKAGES)
    21  
    22  ci: test
    23  
    24  .PHONY: all tool clean test ci