I have following Makefile:
SHELL := /bin/bash
boot:
@go run main.go
test:
@go test ./...
test-conf:
@go test --verbose conf
test-httpd:
@go test --verbose ./httpd
.PHONY: test test-conf test-httpd
Strangely enough make test
works without problems however make test-conf
or make test-httpd
will both result in "github.com/bodokaiser/foobar [no test files]".
When I run go test ./conf
from the working dir it works - shouldn't the makefile work too then?
What do I need to do to get go test working with packages in a Makefile?
PS: I would like to avoid using $(pwd) or something in front of all paths if possible...