Browse Source

clean up Makefile

tags/v2.0.0-rc1
Shivaram Lingamneni 4 years ago
parent
commit
7531d02334
2 changed files with 5 additions and 30 deletions
  1. 5
    2
      Makefile
  2. 0
    28
      install.sh

+ 5
- 2
Makefile View File

@@ -1,11 +1,14 @@
1
-.PHONY: all install release capdefs deps test
1
+.PHONY: all install build release capdefs deps test
2 2
 
3 3
 capdef_file = ./irc/caps/defs.go
4 4
 
5 5
 all: install
6 6
 
7 7
 install: deps
8
-	./install.sh
8
+	go install -v
9
+
10
+build: deps
11
+	go build -v
9 12
 
10 13
 release: deps
11 14
 	goreleaser --skip-publish --rm-dist

+ 0
- 28
install.sh View File

@@ -1,28 +0,0 @@
1
-#!/bin/sh
2
-
3
-set -e
4
-
5
-if [ -z "$GOPATH" ]; then
6
-	echo Error: \$GOPATH is unset
7
-	echo See https://golang.org/doc/code.html for details, or try these steps:
8
-	printf "\tmkdir -p ~/go\n"
9
-	printf "\texport GOPATH=~/go\n"
10
-	exit 1
11
-fi
12
-
13
-EXPECTED_DIR=${GOPATH}/src/github.com/oragono/oragono
14
-
15
-if [ "$PWD" != "$EXPECTED_DIR" ] ; then
16
-	echo Error: working directory is not where \$GOPATH expects it to be
17
-	echo "Expected: $EXPECTED_DIR"
18
-	echo "Actual:   $PWD"
19
-	echo See https://golang.org/doc/code.html for details, or try these steps:
20
-	printf "\tmkdir -p %s/src/github.com/oragono\n" "$GOPATH"
21
-	printf "\tcd %s/src/github.com/oragono\n" "$GOPATH"
22
-	printf "\tmv %s oragono\n" "$PWD"
23
-	printf "\tcd oragono\n"
24
-	exit 1
25
-fi
26
-
27
-go install -v
28
-echo successfully installed as "${GOPATH}/bin/oragono"

Loading…
Cancel
Save