mirror of
https://github.com/outbackdingo/ghorg.git
synced 2026-01-27 18:18:58 +00:00
* add `make fmt` to format go code * use interface * move all SCM things into scm package
17 lines
381 B
Makefile
17 lines
381 B
Makefile
GOFILES := $(shell find . -name "*.go" -type f ! -path "./vendor/*" ! -path "*/bindata.go")
|
|
GOFMT ?= gofmt -s
|
|
|
|
.PHONY: install
|
|
install:
|
|
mkdir -p ${HOME}/.config/ghorg
|
|
cp sample-conf.yaml ${HOME}/.config/ghorg/conf.yaml
|
|
|
|
.PHONY: homebrew
|
|
homebrew:
|
|
mkdir -p ${HOME}/.config/ghorg
|
|
cp sample-conf.yaml ${HOME}/.config/ghorg/conf.yaml
|
|
|
|
.PHONY: fmt
|
|
fmt:
|
|
$(GOFMT) -w $(GOFILES)
|