mirror of
https://github.com/danog/gojekyll.git
synced 2024-11-27 00:34:42 +01:00
make install_dev_tools -> setup
This commit is contained in:
parent
8d2df7c55f
commit
caad408929
@ -10,7 +10,7 @@ before_install:
|
||||
- go get github.com/mattn/goveralls
|
||||
|
||||
install:
|
||||
- make install_dev_tools
|
||||
- make setup
|
||||
- go get -t ./...
|
||||
- pip install --user Pygments
|
||||
- export PATH=$HOME/.local/bin:$PATH
|
||||
|
@ -20,7 +20,7 @@ Fork and clone the repo.
|
||||
Install package dependencies and development tools:
|
||||
|
||||
```bash
|
||||
make install_dev_tools
|
||||
make setup
|
||||
go get -t ./...
|
||||
```
|
||||
|
||||
|
8
Makefile
8
Makefile
@ -7,8 +7,8 @@ COMMIT_HASH = `git rev-parse --short HEAD 2>/dev/null`
|
||||
|
||||
LDFLAGS=-ldflags "-X ${PACKAGE}.Version=${COMMIT_HASH}"
|
||||
|
||||
.DEFAULT_GOAL: $(BINARY)
|
||||
.PHONY: build clean dependencies setup install lint test help
|
||||
.DEFAULT_GOAL: build
|
||||
.PHONY: build clean deps setup install lint test help
|
||||
|
||||
$(BINARY): $(SOURCES)
|
||||
go build ${LDFLAGS} -o ${BINARY} ${PACKAGE}/cmd/gojekyll
|
||||
@ -21,14 +21,14 @@ clean: ## remove binary files
|
||||
deps: ## list dependencies
|
||||
go list -f '{{join .Imports "\n"}}' ./... | grep -v ${PACKAGE} | grep '\.' | sort | uniq
|
||||
|
||||
install_dev_tools: ## install dependencies and development tools
|
||||
setup: ## install dependencies and development tools
|
||||
go get -u github.com/alecthomas/gometalinter
|
||||
gometalinter --install
|
||||
|
||||
install: ## compile and install the executable
|
||||
go install ${LDFLAGS} ${PACKAGE}/cmd/gojekyll
|
||||
|
||||
lint: ## lint the package
|
||||
lint: ## Run all the linters
|
||||
gometalinter ./... --disable=gotype
|
||||
|
||||
test: ## test the package
|
||||
|
Loading…
Reference in New Issue
Block a user