include $(GOROOT)/src/Make.inc all: install DIRS=\ document\ key\ server\ store\ ../cmd/armorkey\ ../cmd/genkey\ ../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 %.install: +@echo install $* +@$(MAKE) -C $* install.clean >$*/build.out 2>&1 || (echo INSTALL FAIL $*; cat $*/build.out; exit 1) %.nuke: +$(MAKE) -C $* nuke %.test: +@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 test: test.dirs nuke: nuke.dirs rm -rf "$(GOROOT)"/pkg/$(GOOS)_$(GOARCH)/epoint deps: ./deps.sh echo-dirs: @echo $(DIRS) -include Make.deps