mirror of
https://github.com/golang/go
synced 2024-11-26 00:07:57 -07:00
rename units -> units.txt.
add makefile rules to build a binary named units as a demo. R=r DELTA=1257 (659 added, 597 deleted, 1 changed) OCL=34528 CL=34530
This commit is contained in:
parent
8f2bf201d3
commit
fc90fb8c81
@ -10,3 +10,8 @@ GOFILES=\
|
||||
|
||||
include $(GOROOT)/src/Make.cmd
|
||||
|
||||
units: goyacc units.y
|
||||
goyacc units.y
|
||||
$(GC) y.go
|
||||
$(LD) -o units y.$O
|
||||
|
||||
|
@ -21,6 +21,8 @@
|
||||
// / 5.5474878e-13
|
||||
// you have:
|
||||
|
||||
package main
|
||||
|
||||
import
|
||||
(
|
||||
"flag";
|
||||
@ -294,7 +296,7 @@ main()
|
||||
|
||||
flag.Parse();
|
||||
|
||||
file = "units";
|
||||
file = "units.txt";
|
||||
if flag.NArg() > 0 {
|
||||
file = flag.Arg(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user