Guest User

Untitled

a guest
Oct 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. NAME := stockNotificationInSlack
  2. SRCS := $(shell find . -type f -name '*.go')
  3. SRCMAIN := ./src/main.go
  4.  
  5. GOPATH := $(shell go env GOPATH)
  6. GOBIN := $(GOPATH)/bin
  7. GOPKG := $(GOPATH)/pkg
  8.  
  9. .DEFAULT_GOAL := release/$(NAME)
  10.  
  11. release/$(NAME): $(SRCS)
  12. GOOS=linux GOARCH=amd64 go build -o release/$(NAME) -tags=release
  13.  
  14. .PHONY: clean
  15. clean:
  16. rm -rf release/*
  17.  
  18. .PHONY: dep
  19. dep:
  20. dep ensure
  21.  
  22. .PHONY: dist
  23. dist:
  24. cd release && \
  25. zip $(NAME).zip $(NAME)
Add Comment
Please, Sign In to add comment