Skip to content

Commit

Permalink
chore(makefile): clean up makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jguer committed Jul 3, 2021
1 parent 022c351 commit ac6a51b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
12 changes: 1 addition & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
export GO111MODULE=on

GOFLAGS := -v -modcacherw
EXTRA_GOFLAGS ?=
LDFLAGS := $(LDFLAGS)
GO ?= go

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

.PHONY: default
default: build

.PHONY: build
build:
$(GO) build $(GOFLAGS) -ldflags '-s -w $(LDFLAGS)' $(EXTRA_GOFLAGS)

.PHONY: test
test:
@test -z "$$(gofmt -l *.go)" || (echo "Files need to be linted. Use make fmt" && false)
$(GO) test $(GOFLAGS) .
$(GO) test -v .

.PHONY: fmt
fmt:
Expand Down
3 changes: 2 additions & 1 deletion testdata/examples/updates/updates.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ package main

import (
"fmt"
paconf "github.com/Morganamilo/go-pacmanconf"
"log"

paconf "github.com/Morganamilo/go-pacmanconf"
)

func human(size int64) string {
Expand Down

0 comments on commit ac6a51b

Please sign in to comment.