3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-25 13:29:27 +01:00

clean up Makefile

This commit is contained in:
Shivaram Lingamneni 2020-02-09 20:51:23 -05:00
parent 87960c1454
commit 7531d02334
2 changed files with 5 additions and 30 deletions

View File

@ -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
all: install
install: deps
./install.sh
go install -v
build: deps
go build -v
release: deps
goreleaser --skip-publish --rm-dist

View File

@ -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"