mirror of
https://github.com/danog/gojekyll.git
synced 2024-11-27 02:54:45 +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
|
- go get github.com/mattn/goveralls
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- make install_dev_tools
|
- make setup
|
||||||
- go get -t ./...
|
- go get -t ./...
|
||||||
- pip install --user Pygments
|
- pip install --user Pygments
|
||||||
- export PATH=$HOME/.local/bin:$PATH
|
- export PATH=$HOME/.local/bin:$PATH
|
||||||
|
@ -20,7 +20,7 @@ Fork and clone the repo.
|
|||||||
Install package dependencies and development tools:
|
Install package dependencies and development tools:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
make install_dev_tools
|
make setup
|
||||||
go get -t ./...
|
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}"
|
LDFLAGS=-ldflags "-X ${PACKAGE}.Version=${COMMIT_HASH}"
|
||||||
|
|
||||||
.DEFAULT_GOAL: $(BINARY)
|
.DEFAULT_GOAL: build
|
||||||
.PHONY: build clean dependencies setup install lint test help
|
.PHONY: build clean deps setup install lint test help
|
||||||
|
|
||||||
$(BINARY): $(SOURCES)
|
$(BINARY): $(SOURCES)
|
||||||
go build ${LDFLAGS} -o ${BINARY} ${PACKAGE}/cmd/gojekyll
|
go build ${LDFLAGS} -o ${BINARY} ${PACKAGE}/cmd/gojekyll
|
||||||
@ -21,14 +21,14 @@ clean: ## remove binary files
|
|||||||
deps: ## list dependencies
|
deps: ## list dependencies
|
||||||
go list -f '{{join .Imports "\n"}}' ./... | grep -v ${PACKAGE} | grep '\.' | sort | uniq
|
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
|
go get -u github.com/alecthomas/gometalinter
|
||||||
gometalinter --install
|
gometalinter --install
|
||||||
|
|
||||||
install: ## compile and install the executable
|
install: ## compile and install the executable
|
||||||
go install ${LDFLAGS} ${PACKAGE}/cmd/gojekyll
|
go install ${LDFLAGS} ${PACKAGE}/cmd/gojekyll
|
||||||
|
|
||||||
lint: ## lint the package
|
lint: ## Run all the linters
|
||||||
gometalinter ./... --disable=gotype
|
gometalinter ./... --disable=gotype
|
||||||
|
|
||||||
test: ## test the package
|
test: ## test the package
|
||||||
|
Loading…
Reference in New Issue
Block a user