X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=pkg%2FMakefile;h=896c219ce2495de3b76724206da6dce1daff8c22;hb=6292f25a3adf8e4ceecd4d578bc71d1ff6035cf9;hp=4917a986b5132d25fca04fdde2e92d9c1743d8bb;hpb=60f039199482cbeffc865a259f31809aa17d9698;p=epoint diff --git a/pkg/Makefile b/pkg/Makefile index 4917a98..896c219 100644 --- a/pkg/Makefile +++ b/pkg/Makefile @@ -11,12 +11,16 @@ DIRS=\ ../cmd/epoint-client\ ../cmd/epoint-server\ +fmt.dirs: $(addsuffix .fmt, $(DIRS)) clean.dirs: $(addsuffix .clean, $(DIRS)) install.dirs: $(addsuffix .install, $(DIRS)) nuke.dirs: $(addsuffix .nuke, $(DIRS)) test.dirs: $(addsuffix .test, $(DIRS)) testshort.dirs: $(addsuffix .testshort, $(DIRS)) +%.fmt: + gofmt -w $*/*.go + %.clean: +$(MAKE) -C $* clean @@ -31,6 +35,8 @@ testshort.dirs: $(addsuffix .testshort, $(DIRS)) +@echo test $* +@$(MAKE) -C $* test.clean >$*/test.out 2>&1 || (echo TEST FAIL $*; cat $*/test.out; exit 1) +fmt: fmt.dirs + clean: clean.dirs install: install.dirs