Demo some examples in *nix.
[stompngo_examples.git] / Makefile
blob8bcfe2fa5166387e678302e51c406e951ca2a0e4
2 # Makefile for stompngo_examples
5 dirs = ack \
6 conndisc \
7 adhoc/reader \
8 adhoc/varmGetter \
9 adhoc/varmGetter/noPackMod/noPMod1 \
10 adhoc/varmGetter/noPackMod/noPMod2 \
11 adhoc/varmGetter/vrmSameConn \
12 cmd/stompngo_examples \
13 conndisc_tls \
14 jinterop/activemq/gorecv \
15 jinterop/activemq/gosend \
16 jinterop/artemis/gorecv \
17 jinterop/artemis/gosend \
18 publish \
19 receipts/onack \
20 receipts/onsend \
21 recv_mds \
22 srmgor_1conn \
23 srmgor_1smrconn \
24 srmgor_2conn \
25 srmgor_manyconn \
26 subscribe \
27 tlsexamps/tlsuc1 \
28 tlsexamps/tlsuc2 \
29 tlsexamps/tlsuc3 \
30 tlsexamps/tlsuc4
32 .PHONY: $(dirs) packages clean format
34 all: $(dirs)
35 @for i in $(dirs); do \
36 echo $$i; \
37 curd=`pwd`; \
38 cd $$i && go build; \
39 cd $$curd; \
40 done
42 clean:
43 @for i in $(dirs); do \
44 echo $$i; \
45 curd=`pwd`; \
46 cd $$i && go clean; \
47 cd $$curd; \
48 done
50 format:
51 @for i in $(dirs); do \
52 echo $$i; \
53 curd=`pwd`; \
54 cd $$i && gofmt -w *.go; \
55 cd $$curd; \
56 done