azure-container-networking/Makefile

29 строки
691 B
Makefile
Исходник Обычный вид История

2016-10-07 02:34:47 +03:00
SOURCEFILES = \
$(wildcard cnm/*.go) \
$(wildcard common/*.go) \
$(wildcard ebtables/*.go) \
$(wildcard ipam/*.go) \
$(wildcard log/*.go) \
$(wildcard netlink/*.go) \
$(wildcard network/*.go) \
$(wildcard store/*.go)
OUTPUTDIR = dist
VERSION ?= $(shell git describe --tags --always --dirty)
# Shorthand target names for convenience.
azure-cnm-plugin: $(OUTPUTDIR)/azure-cnm-plugin
# Clean all build artifacts.
.PHONY: clean
clean:
rm -rf $(OUTPUTDIR)
# Build the Azure CNM plugin.
dist/azure-cnm-plugin: $(SOURCEFILES)
go build -v -o azure-cnm-plugin -ldflags "-X main.version=$(VERSION) -s -w" cnm/cnm.go
install:
go install github.com/Azure/azure-container-networking/cnm