-
Notifications
You must be signed in to change notification settings - Fork 259
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 778 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 778 Bytes
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
### Makefile ---
## Author: shell@shell-deb.shdiv.qizhitech.com
## Version: $Id: Makefile,v 0.0 2012/11/02 06:18:14 shell Exp $
## Keywords:
## X-URL:
TARGET=goproxy README.html
all: build
%.html: %.md
markdown $^ > $@
build: $(TARGET)
install: build
install -d $(DESTDIR)/usr/bin/
install -s goproxy $(DESTDIR)/usr/bin/
install daemonized $(DESTDIR)/usr/bin/
install -d $(DESTDIR)/usr/share/goproxy/
install -m 644 routes.list.gz $(DESTDIR)/usr/share/goproxy/
install -m 644 README.html $(DESTDIR)/usr/share/goproxy/
install -d $(DESTDIR)/etc/goproxy/
install -m 644 resolv.conf $(DESTDIR)/etc/goproxy/
clean:
rm -f $(TARGET)
goproxy: goproxy.go
go build -o $@ $^
chmod 755 $@
glookup: glookup.go
go build -o $@ $^
chmod 755 $@
### Makefile ends here