File: Makefile

package info (click to toggle)
golang-github-hhatto-gorst 0.0~git20181029.ca9f730-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 436 kB
  • sloc: makefile: 38
file content (45 lines) | stat: -rw-r--r-- 664 bytes parent folder | download
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\