-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (34 loc) · 664 Bytes
/
Makefile
File metadata and controls
45 lines (34 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
all:
@echo 'targets: cmd test nuke parser clean'
cmd:
go build -v -o gorst cmd/gorst/main.go
test:
go test -v
package: parser.leg.go
go install -v
clean:
go clean . ./...
rm -rf ,,prevmd ,,pmd
rm -f *.html gorst
parser: parser.leg.go
nuke:
rm -f parser.leg.go
install-packages:
go get -v -u golang.org/x/tools/cmd/goimports
# LEG parser rules
#
ifeq ($(MAKECMDGOALS),parser)
include $(shell go list -f '{{.Dir}}' github.com/knieriem/peg)/Make.inc
%.leg.go: %.leg $(LEG)
$(LEG) -verbose -switch -O all $< > $@
goimports -w parser.leg.go
go fmt parser.leg.go
endif
include misc/devel.mk
.PHONY: \
all\
cmd\
nuke\
test\
package\
parser\