netlink/Makefile

16 lines
352 B
Makefile
Raw Normal View History

2014-10-31 18:45:51 +00:00
DIRS := \
. \
nl
uniq = $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
testdirs = $(call uniq,$(foreach d,$(1),$(dir $(wildcard $(d)/*_test.go))))
all: test
.PHONY: $(call testdirs,$(DIRS))
$(call testdirs,$(DIRS)):
2014-10-31 19:21:50 +00:00
! gofmt -l $@*.go | grep ''
go test -v github.com/vishvananda/netlink/$@
2014-10-31 18:45:51 +00:00
test: $(call testdirs,$(DIRS))