Skip to content

Commit

Permalink
chore(makefile): use Immediate set (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
pei0804 authored and easonlin404 committed Mar 21, 2019
1 parent 6163333 commit c9cee45
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
GOCMD=$(shell which go)
GOLINT=$(shell which golint)
GOIMPORT=$(shell which goimports)
GOFMT =$(shell which gofmt)
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
GOLIST=$(GOCMD) list
GOCMD:=$(shell which go)
GOLINT:=$(shell which golint)
GOIMPORT:=$(shell which goimports)
GOFMT:=$(shell which gofmt)
GOBUILD:=$(GOCMD) build
GOCLEAN:=$(GOCMD) clean
GOTEST:=$(GOCMD) test
GOGET:=$(GOCMD) get
GOLIST:=$(GOCMD) list

BINARY_NAME=swag
PACKAGES=$(shell $(GOLIST) ./... | grep -v /example)
GOFILES := $(shell find . -name "*.go" -type f)
BINARY_NAME:=swag
PACKAGES:=$(shell $(GOLIST) ./... | grep -v /example)
GOFILES:=$(shell find . -name "*.go" -type f)

all: test build

Expand Down

0 comments on commit c9cee45

Please sign in to comment.