mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 21:39:25 +01:00
clean up Makefile
This commit is contained in:
parent
87960c1454
commit
7531d02334
7
Makefile
7
Makefile
@ -1,11 +1,14 @@
|
|||||||
.PHONY: all install release capdefs deps test
|
.PHONY: all install build release capdefs deps test
|
||||||
|
|
||||||
capdef_file = ./irc/caps/defs.go
|
capdef_file = ./irc/caps/defs.go
|
||||||
|
|
||||||
all: install
|
all: install
|
||||||
|
|
||||||
install: deps
|
install: deps
|
||||||
./install.sh
|
go install -v
|
||||||
|
|
||||||
|
build: deps
|
||||||
|
go build -v
|
||||||
|
|
||||||
release: deps
|
release: deps
|
||||||
goreleaser --skip-publish --rm-dist
|
goreleaser --skip-publish --rm-dist
|
||||||
|
28
install.sh
28
install.sh
@ -1,28 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
if [ -z "$GOPATH" ]; then
|
|
||||||
echo Error: \$GOPATH is unset
|
|
||||||
echo See https://golang.org/doc/code.html for details, or try these steps:
|
|
||||||
printf "\tmkdir -p ~/go\n"
|
|
||||||
printf "\texport GOPATH=~/go\n"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
EXPECTED_DIR=${GOPATH}/src/github.com/oragono/oragono
|
|
||||||
|
|
||||||
if [ "$PWD" != "$EXPECTED_DIR" ] ; then
|
|
||||||
echo Error: working directory is not where \$GOPATH expects it to be
|
|
||||||
echo "Expected: $EXPECTED_DIR"
|
|
||||||
echo "Actual: $PWD"
|
|
||||||
echo See https://golang.org/doc/code.html for details, or try these steps:
|
|
||||||
printf "\tmkdir -p %s/src/github.com/oragono\n" "$GOPATH"
|
|
||||||
printf "\tcd %s/src/github.com/oragono\n" "$GOPATH"
|
|
||||||
printf "\tmv %s oragono\n" "$PWD"
|
|
||||||
printf "\tcd oragono\n"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
go install -v
|
|
||||||
echo successfully installed as "${GOPATH}/bin/oragono"
|
|
Loading…
Reference in New Issue
Block a user