We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4c1b25 commit bbdb2ebCopy full SHA for bbdb2eb
.gitignore
@@ -1 +1,2 @@
1
qid.db
2
+/builds
Makefile
@@ -46,3 +46,14 @@ gen:
46
test:
47
@go test ./...
48
49
+PLATFORMS := linux/amd64 windows/amd64 darwin/amd64
50
+
51
+temp = $(subst /, ,$@)
52
+os = $(word 1, $(temp))
53
+arch = $(word 2, $(temp))
54
55
+.PHONY: release $(PLATFORMS)
56
+release: $(PLATFORMS)
57
58
+$(PLATFORMS):
59
+ GOOS=$(os) GOARCH=$(arch) go build -o ./builds/'$(os)-$(arch)' .
0 commit comments