Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Vendoring project #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 46 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
.PHONY: clean deps test check build
# The MIT License (MIT)

# Copyright (c) 2016, 2017 Mikkel Oscar Lyderik Larsen

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

.PHONY: clean deps test check build init

BINARY ?= flis
VERSION ?= $(shell git describe --tags --always --dirty)
Expand All @@ -7,22 +29,41 @@ GOPKGS = $(shell go list ./... | grep -v /vendor/)
BUILD_FLAGS ?= -v
LDFLAGS ?= -X main.version=$(VERSION) -w -s

NO_COLOR=\033[0m
OK_COLOR=\033[32;01m
ERROR_COLOR=\033[31;01m
WARN_COLOR=\033[33;01m

MAKE_COLOR=\033[33;01m%-20s\033[0m

default: build

.PHONY: help
help:
@echo -e "$(OK_COLOR)==== $(BINARY) [$(VERSION)] ====$(NO_COLOR)"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "$(MAKE_COLOR) : %s\n", $$1, $$2}'

init: ## Install requirements
@echo -e "$(OK_COLOR)[$(BINARY)] Install requirements$(NO_COLOR)"
@go get -u github.com/golang/glog
@go get -u github.com/kardianos/govendor
@go get -u github.com/golang/lint/golint
@go get -u github.com/kisielk/errcheck

deps:
go get -v -u -t ./...

clean:
clean: ## Cleanup
rm -rf build

test:
test: ## Launch unit tests
go test -v $(GOPKGS)

check:
check: ## Check go code
golint ./...
go vet -v $(GOPKGS)

build: build/$(BINARY)
build: build/$(BINARY) ## Build binary

build/$(BINARY): $(SOURCES)
go build -o build/$(BINARY) $(BUILD_FLAGS) -ldflags "$(LDFLAGS)" .
21 changes: 21 additions & 0 deletions vendor/github.com/mikkeloscar/go-wlc/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions vendor/github.com/mikkeloscar/go-wlc/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions vendor/github.com/mikkeloscar/go-wlc/core.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

203 changes: 203 additions & 0 deletions vendor/github.com/mikkeloscar/go-wlc/core.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading