SUBDIRS := cmd/tunnel cmd/tunneld TARGETS := build clean .PHONY: default default: build $(TARGETS): $(SUBDIRS) $(SUBDIRS): @$(MAKE) -C $@ $(MAKECMDGOALS) fmt: go fmt tunnel/... test: @$(MAKE) -C test .PHONY: $(TARGETS) $(SUBDIRS) test