forked from bytbox/gomake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (26 loc) · 827 Bytes
/
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
.PHONY: all clean
include ${GOROOT}/src/Make.inc
all: godep gomake gorules goinfo
gomake: src/gomake.${O}
${LD} -o $@ src/gomake.${O}
godep: src/godep.${O}
${LD} -o $@ src/godep.${O}
gorules: src/gorules.${O}
${LD} -o $@ src/gorules.${O}
goinfo: src/goinfo.${O}
${LD} -o $@ src/goinfo.${O}
src/godep.${O}: src/godep.go src/common.go
${GC} -o $@ src/godep.go src/common.go
src/gomake.${O}: src/gomake.go src/common.go
${GC} -o $@ src/gomake.go src/common.go
src/gorules.${O}: src/gorules.go src/common.go
${GC} -o $@ src/gorules.go src/common.go
src/goinfo.${O}: src/goinfo.go src/common.go
${GC} -o $@ src/goinfo.go src/common.go
install: all
cp godep gomake gorules goinfo /usr/local/bin
cp doc/*.1 /usr/local/share/man/man1
format:
gofmt -w src/*.go
clean:
rm -f godep gomake getgo goinfo src/*.${O}