blob: 656ea5531e46a62b34638b1e6c08e3c8bfd4b779 (
plain)
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
|
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# GNU Make syntax:
ifndef GOBIN
GOBIN=$(HOME)/bin
endif
all: $(TARG)
$(TARG): _go_.$O $(OFILES)
$(LD) -o $@ _go_.$O $(OFILES)
_go_.$O: $(GOFILES)
$(GC) -o $@ $(GOFILES)
install: $(GOBIN)/$(TARG)
$(GOBIN)/$(TARG): $(TARG)
cp $(TARG) $@
clean:
rm -f *.[$(OS)] $(TARG) $(CLEANFILES)
nuke:
rm -f *.[$(OS)] $(TARG) $(CLEANFILES) $(GOBIN)/$(TARG)
|