srmgor_1conn.go updated for common code / logging.
[stompngo_examples.git] / Makefile
blob0fdd6d84d37b2fceab6cd5f303e46a4048d41307
2 # Makefile for stompngo_examples
5 dirs = ack \
6 conndisc \
7 conndisc_tls \
8 jinterop/activemq/gorecv \
9 jinterop/activemq/gosend \
10 jinterop/artemis/gorecv \
11 jinterop/artemis/gosend \
12 publish \
13 receipts/onack \
14 receipts/onsend \
15 recv_mds \
16 srmgor_1conn \
17 srmgor_1smrconn \
18 srmgor_2conn \
19 srmgor_manyconn \
20 subscribe \
21 tlsexamps/tlsuc1 \
22 tlsexamps/tlsuc2 \
23 tlsexamps/tlsuc3 \
24 tlsexamps/tlsuc4
26 .PHONY: $(dirs) packages clean format
28 all: $(dirs)
29 @for i in $(dirs); do \
30 echo $$i; \
31 curd=`pwd`; \
32 cd $$i && go build; \
33 cd $$curd; \
34 done
36 clean:
37 @for i in $(dirs); do \
38 echo $$i; \
39 curd=`pwd`; \
40 cd $$i && go clean; \
41 cd $$curd; \
42 done
44 format:
45 @for i in $(dirs); do \
46 echo $$i; \
47 curd=`pwd`; \
48 cd $$i && gofmt -w *.go; \
49 cd $$curd; \
50 done