forked from justzx2011/goproxy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
47 lines (37 loc) · 1.21 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
### Makefile ---
## Author: [email protected]
## Version: $Id: Makefile,v 0.0 2012/11/02 06:18:14 shell Exp $
## Keywords:
## X-URL:
LEVEL=NOTICE
all: build
buildtar: build
strip bin/goproxy
tar cJf ../goproxy-`uname -m`.tar.xz bin/goproxy debian/config.json debian/routes.list.gz
clean:
rm -rf bin pkg
debian/rules clean
test:
go test github.com/shell909090/goproxy/ipfilter
go test github.com/shell909090/goproxy/msocks
build:
mkdir -p bin
go build -o bin/goproxy github.com/shell909090/goproxy/goproxy
install: build
install -d $(DESTDIR)/usr/bin/
install -m 755 -s bin/goproxy $(DESTDIR)/usr/bin/
install -d $(DESTDIR)/usr/share/goproxy/
install -m 644 debian/routes.list.gz $(DESTDIR)/usr/share/goproxy/
install -m 644 README.html $(DESTDIR)/usr/share/goproxy/
install -d $(DESTDIR)/etc/goproxy/
install -m 644 debian/config.json $(DESTDIR)/etc/goproxy/
press-clean:
rm -f server.log client.log httproxy.log
press: build press-clean
bin/goproxy -config=server.json &
bin/goproxy -config=client.json &
sleep 1
# curl -x http://localhost:5234 http://localhost:6060/ > /dev/null
curl -x http://localhost:5234 http://www.microsoft.com > /dev/null
killall goproxy
### Makefile ends here