antiroachlol/Makefile

18 lines
317 B
Makefile

BUILDVARS := CGO_ENABLED=0
.PHONY: swarm
swarm:
$(BUILDVARS) go build -o swarm cmd/swarm/main.go
.PHONY: linux
linux:
$(BUILDVARS) GOOS=linux GOARCH=amd64 go build -o swarm cmd/swarm/main.go
.PHONY: clean
clean:
rm -vf swarm
.PHONY: image
image: linux
docker build -t dockermirror:5000/dpedu/antiroachswarm .