2008-11-14 11:45:23 -07:00
|
|
|
# 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.
|
|
|
|
|
2010-08-24 18:00:33 -06:00
|
|
|
include ../../Make.inc
|
|
|
|
O:=$(HOST_O)
|
2008-11-14 11:45:23 -07:00
|
|
|
|
|
|
|
# The directory is cov because the source is portable and general.
|
|
|
|
# We call the binary 6cov to avoid confusion and because this binary
|
|
|
|
# is linked only with amd64 and x86 support.
|
|
|
|
|
|
|
|
TARG=6cov
|
|
|
|
OFILES=\
|
|
|
|
main.$O\
|
|
|
|
tree.$O\
|
|
|
|
|
|
|
|
HFILES=\
|
|
|
|
tree.h\
|
|
|
|
|
2010-08-24 18:00:33 -06:00
|
|
|
NOINSTALL=1
|
|
|
|
include ../../Make.ccmd
|
2008-11-14 11:45:23 -07:00
|
|
|
|
2010-07-29 19:47:11 -06:00
|
|
|
ifeq ($(GOOS),windows)
|
|
|
|
NAME=windows
|
|
|
|
else
|
|
|
|
NAME=$(shell uname | tr A-Z a-z)
|
|
|
|
endif
|
|
|
|
|
|
|
|
install: install-$(NAME)
|
2008-11-18 11:08:46 -07:00
|
|
|
install-linux: install-default
|
2009-11-17 09:20:58 -07:00
|
|
|
install-freebsd: install-default
|
2011-12-12 13:42:06 -07:00
|
|
|
install-netbsd: install-default
|
2011-08-22 21:24:25 -06:00
|
|
|
install-openbsd: install-default
|
2010-07-29 19:47:11 -06:00
|
|
|
install-windows: install-default
|
2008-11-18 11:08:46 -07:00
|
|
|
|
|
|
|
# on Darwin, have to install and setgid; see $GOROOT/src/sudo.bash
|
|
|
|
install-darwin: $(TARG)
|
|
|
|
@true
|
|
|
|
|
|
|
|
install-default: $(TARG)
|
2009-11-23 18:32:51 -07:00
|
|
|
cp $(TARG) "$(GOBIN)"/$(TARG)
|