diff options
author | Russ Cox <rsc@golang.org> | 2010-08-24 20:00:33 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-08-24 20:00:33 -0400 |
commit | dcb6b277d7e6cc76451e9c12c3fa7d3227a7510c (patch) | |
tree | ebe80eb78031e7655219cef81feafdd2a6d43c21 /src/cmd/5a | |
parent | 245294d7b6cbc887554e424574ff36f88df42c00 (diff) | |
download | go-dcb6b277d7e6cc76451e9c12c3fa7d3227a7510c.tar.gz |
build: $GOBIN defaults to $GOROOT/bin
R=r
CC=golang-dev
http://codereview.appspot.com/1982049
Diffstat (limited to 'src/cmd/5a')
-rw-r--r-- | src/cmd/5a/Makefile | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/src/cmd/5a/Makefile b/src/cmd/5a/Makefile index f01b017da..9485e5cf8 100644 --- a/src/cmd/5a/Makefile +++ b/src/cmd/5a/Makefile @@ -2,7 +2,8 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. -include ../../Make.conf +include ../../Make.inc +O:=$(HOST_O) TARG=\ 5a\ @@ -15,26 +16,11 @@ HFILES=\ OFILES=\ y.tab.$O\ lex.$O\ -# ../5l/enam.$O\ + ../5l/enam.$O\ YFILES=\ a.y\ -$(TARG): $(OFILES) - $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) -lbio -l9 - -$(OFILES): $(HFILES) +include ../../Make.ccmd lex.$O: ../cc/macbody ../cc/lexbody - -y.tab.h: $(YFILES) - bison -y $(YFLAGS) $(YFILES) - -y.tab.c: y.tab.h - test -f y.tab.c && touch y.tab.c - -clean: - rm -f *.$O $(TARG) *.5 enam.c 5.out a.out y.tab.h y.tab.c - -install: $(TARG) - cp $(TARG) "$(GOBIN)"/$(TARG) |