fix balance check in server logic
[epoint] / pkg / Makefile
1 include $(GOROOT)/src/Make.inc
2
3 all: install
4
5 DIRS=\
6         document\
7         key\
8         server\
9         store\
10         ../cmd/armorkey\
11         ../cmd/genkey\
12         ../cmd/epoint-client\
13         ../cmd/epoint-server\
14
15 fmt.dirs: $(addsuffix .fmt, $(DIRS))
16 clean.dirs: $(addsuffix .clean, $(DIRS))
17 install.dirs: $(addsuffix .install, $(DIRS))
18 nuke.dirs: $(addsuffix .nuke, $(DIRS))
19 test.dirs: $(addsuffix .test, $(DIRS))
20 testshort.dirs: $(addsuffix .testshort, $(DIRS))
21
22 %.fmt:
23         gofmt -w $*/*.go
24
25 %.clean:
26         +$(MAKE) -C $* clean
27
28 %.install:
29         +@echo install $*
30         +@$(MAKE) -C $* install.clean >$*/build.out 2>&1 || (echo INSTALL FAIL $*; cat $*/build.out; exit 1)
31
32 %.nuke:
33         +$(MAKE) -C $* nuke
34
35 %.test:
36         +@echo test $*
37         +@$(MAKE) -C $* test.clean >$*/test.out 2>&1 || (echo TEST FAIL $*; cat $*/test.out; exit 1)
38
39 fmt: fmt.dirs
40
41 clean: clean.dirs
42
43 install: install.dirs
44
45 test: test.dirs
46
47 nuke: nuke.dirs
48         rm -rf "$(GOROOT)"/pkg/$(GOOS)_$(GOARCH)/epoint
49
50 deps:
51         ./deps.sh
52
53 echo-dirs:
54         @echo $(DIRS)
55
56 -include Make.deps