1
0
mirror of https://github.com/golang/go synced 2024-10-03 18:21:21 -06:00
go/src/Make.cmd
Russ Cox bdcf1f8125 add and use Make.cmd
R=r
DELTA=63  (23 added, 31 deleted, 9 changed)
OCL=33932
CL=33959
2009-08-27 11:17:14 -07:00

28 lines
511 B
Batchfile

# 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)