added makefile section comments

This commit is contained in:
Philipp Mieden 2019-05-21 12:35:56 +02:00
parent 63640b24b2
commit 0827eb9b4a

View File

@ -3,6 +3,8 @@ SHELL := /bin/bash
TAG?=latest
IMAGE=docker-registry.bestbytes.net/contentserver
# Utils
all: build test
tag:
echo $(TAG)
@ -10,6 +12,9 @@ dep:
go mod download && go mod vendor && go install -i ./vendor/...
clean:
rm -fv bin/contentserve*
# Build
build: clean
go build -o bin/contentserver
build-arch: clean
@ -25,7 +30,7 @@ build-docker: clean build-arch
package: build
pkg/build.sh
# docker
# Docker
docker-build:
docker build -t $(IMAGE):$(TAG) .
@ -33,7 +38,7 @@ docker-build:
docker-push:
docker push $(IMAGE):$(TAG)
# testing / benchmarks
# Testing / benchmarks
test:
go test ./...
@ -41,7 +46,7 @@ test:
bench:
go test -run=none -bench=. ./...
# profiling
# Profiling
test-cpu-profile:
go test -cpuprofile=cprof-client github.com/foomo/contentserver/client