more makefile fixes.

This commit is contained in:
David Newhall II 2019-01-26 15:56:05 -08:00
parent 2496460a4c
commit cccb0d1be5
1 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,4 @@
PACKAGES=`find ./cmd -mindepth 1 -maxdepth 1 -type d` PACKAGES=`find ./cmd -mindepth 1 -maxdepth 1 -type d`
LIBRARYS=
BINARY=unifi-poller BINARY=unifi-poller
all: clean man build all: clean man build
@ -49,11 +48,11 @@ test: lint
for p in $(PACKAGES) $(LIBRARYS); do go test -race -covermode=atomic $${p}; done for p in $(PACKAGES) $(LIBRARYS); do go test -race -covermode=atomic $${p}; done
lint: lint:
goimports -l $(PACKAGES) $(LIBRARYS) goimports -l $(PACKAGES)
gofmt -l $(PACKAGES) $(LIBRARYS) gofmt -l $(PACKAGES)
errcheck $(PACKAGES) $(LIBRARYS) errcheck $(PACKAGES)
golint $(PACKAGES) $(LIBRARYS) golint $(PACKAGES)
go vet $(PACKAGES) $(LIBRARYS) go vet $(PACKAGES)
man: man:
script/build_manpages.sh ./ script/build_manpages.sh ./