ghorg/Makefile
2023-08-26 08:13:35 -07:00

26 lines
496 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)
.PHONY: release
release:
goreleaser release
.PHONY: examples
examples:
cp -rf examples/* cmd/examples-copy/