mirror of
https://github.com/golang/go.git
synced 2025-05-18 13:54:40 +00: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
|
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
|
// / 5.5474878e-13
|
||||||
// you have:
|
// you have:
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
import
|
import
|
||||||
(
|
(
|
||||||
"flag";
|
"flag";
|
||||||
@ -294,7 +296,7 @@ main()
|
|||||||
|
|
||||||
flag.Parse();
|
flag.Parse();
|
||||||
|
|
||||||
file = "units";
|
file = "units.txt";
|
||||||
if flag.NArg() > 0 {
|
if flag.NArg() > 0 {
|
||||||
file = flag.Arg(0);
|
file = flag.Arg(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user