github.com/suedadam/up@v0.1.12/Makefile (about)

     1  
     2  GO ?= go
     3  
     4  # Build all files.
     5  build:
     6  	@$(GO) generate ./...
     7  .PHONY: build
     8  
     9  # Install from source.
    10  install:
    11  	@$(GO) install ./...
    12  	@echo "==> Installed up ${GOPATH}/bin/up"
    13  .PHONY: install
    14  
    15  # Install the development dependencies.
    16  install.deps:
    17  	@$(GO) get -u github.com/jteeuwen/go-bindata/...
    18  	@$(GO) get -u github.com/pointlander/peg/...
    19  	@echo "==> Install all development dependencies"
    20  .PHONY: install.deps
    21  
    22  # Run all tests.
    23  test:
    24  	@$(GO) test -cover ./...
    25  .PHONY: test
    26  
    27  # Test setup for CI.
    28  test.setup:
    29  	@echo "==> Install dep"
    30  	@$(GO) get github.com/golang/dep/cmd/dep
    31  	@echo "==> Install dependencies"
    32  	@dep ensure
    33  .PHONY: test.setup
    34  
    35  # Show source statistics.
    36  cloc:
    37  	@cloc -exclude-dir=vendor,node_modules .
    38  .PHONY: cloc
    39  
    40  # Release binaries to GitHub.
    41  release:
    42  	@echo "==> Releasing"
    43  	@goreleaser -p 1 --rm-dist -config .goreleaser.yml
    44  	@echo "==> Complete"
    45  .PHONY: release
    46  
    47  # Show to-do items per file.
    48  todo:
    49  	@grep \
    50  		--exclude-dir=vendor \
    51  		--exclude-dir=node_modules \
    52  		--text \
    53  		--color \
    54  		-nRo -E ' TODO:.*|SkipNow' .
    55  .PHONY: todo
    56  
    57  # Show size of imports.
    58  size:
    59  	@curl -sL https://gist.githubusercontent.com/tj/04e0965e23da00ca33f101e5b2ed4ed4/raw/9aa16698b2bc606cf911219ea540972edef05c4b/gistfile1.txt | bash
    60  .PHONY: size
    61  
    62  # Clean.
    63  clean:
    64  	@rm -fr dist
    65  .PHONY: clean