Skip to content

Commit ac6a51b

Browse files
committed
chore(makefile): clean up makefile
1 parent 022c351 commit ac6a51b

2 files changed

Lines changed: 3 additions & 12 deletions

File tree

Makefile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
export GO111MODULE=on
22

3-
GOFLAGS := -v -modcacherw
4-
EXTRA_GOFLAGS ?=
5-
LDFLAGS := $(LDFLAGS)
63
GO ?= go
74

85
SOURCES ?= $(shell find . -name "*.go")
96

10-
.PHONY: default
11-
default: build
12-
13-
.PHONY: build
14-
build:
15-
$(GO) build $(GOFLAGS) -ldflags '-s -w $(LDFLAGS)' $(EXTRA_GOFLAGS)
16-
177
.PHONY: test
188
test:
199
@test -z "$$(gofmt -l *.go)" || (echo "Files need to be linted. Use make fmt" && false)
20-
$(GO) test $(GOFLAGS) .
10+
$(GO) test -v .
2111

2212
.PHONY: fmt
2313
fmt:

testdata/examples/updates/updates.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ package main
88

99
import (
1010
"fmt"
11-
paconf "github.com/Morganamilo/go-pacmanconf"
1211
"log"
12+
13+
paconf "github.com/Morganamilo/go-pacmanconf"
1314
)
1415

1516
func human(size int64) string {

0 commit comments

Comments
 (0)