1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00
mxpv-podsync/Makefile
2021-12-31 14:26:34 +02:00

35 lines
383 B
Makefile

BINPATH := $(abspath ./bin)
.PHONY: all
all: build test
#
# Build Podsync CLI binary
#
.PHONY: build
build:
go build -o bin/podsync ./cmd/podsync
#
# Build Docker image
#
TAG ?= localhost/podsync
.PHONY: docker
docker:
docker build -t $(TAG) .
docker push $(TAG)
#
# Run unit tests
#
.PHONY: test
test:
go test -v ./...
#
# Clean
#
.PHONY: clean
clean:
- rm -rf $(BINPATH)