Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 22 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,28 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

peg: bootstrap.peg.go peg.go main.go
go build
all: dirbin peg leg

bootstrap.peg.go: bootstrap/main.go peg.go
cd bootstrap; go build
bootstrap/bootstrap
dirbin:
mkdir -p bin

peg: src/peg/bootstrap.peg.go src/peg/peg.go src/peg/main.go
cd src/peg/; go build
mv src/peg/peg bin/

leg: src/leg/bootstrap.leg.go src/leg/leg.go src/leg/main.go
cd src/leg/; go build
mv src/leg/leg bin/

bootstrap.peg.go: src/bootstrap/peg/main.go src/peg/peg.go
cd src/bootstrap/peg; go build
src/bootstrap/peg/peg
mv src/bootstrap/peg/bootstrap.peg.go ./

bootstrap.leg.go: src/bootstrap/leg/main.go src/leg/leg.go
cd src/bootstrap/leg; go build
src/bootstrap/leg/leg
mv src/bootstrap/leg/bootstrap.leg.go ./

clean:
rm -f bootstrap/bootstrap peg peg.peg.go
rm -f src/bootstrap/peg/peg src/bootstrap/leg/leg bin/peg bin/leg
Loading