Parcourir la source

add make.clean to remoe compiled packages

tags/v0.9.0
jimzhan il y a 10 ans
Parent
révision
cb6538d32b
1 fichiers modifiés avec 8 ajouts et 3 suppressions
  1. +8
    -3
      Makefile

+ 8
- 3
Makefile Voir le fichier

.PHONY: all test clean build install .PHONY: all test clean build install


GOFLAGS ?= $(GOFLAGS:) GOFLAGS ?= $(GOFLAGS:)
ARCH=$(shell ls $(GOPATH)/pkg | head -n 1)
PKG=$(GOPATH)/pkg/$(ARCH)/github.com/goanywhere


all: test build all: test build


build:
clean:
@find $(PKG) -name 'rex.a' -delete
@find $(PKG) -name 'rex' -type d -print0|xargs -0 rm -r

build: clean
@go get -v ./... @go get -v ./...


test: build
test:
@go test -v ./... @go test -v ./...


bench: install bench: install
@go test -run=NONE -bench=. $(GOFLAGS) ./... @go test -run=NONE -bench=. $(GOFLAGS) ./...


Chargement…
Annuler
Enregistrer