2012-04-20 11:35:31 +00:00
|
|
|
all:
|
2012-05-04 10:42:16 +00:00
|
|
|
@echo 'targets: nuke parser clean'
|
2010-11-21 22:04:39 +00:00
|
|
|
|
|
|
|
cmd: package
|
2012-04-20 11:35:31 +00:00
|
|
|
cd cmd/markdown && go build -v
|
2010-11-21 22:04:39 +00:00
|
|
|
|
2012-04-20 11:35:31 +00:00
|
|
|
package: parser.leg.go
|
|
|
|
go install -v
|
2010-11-21 22:04:39 +00:00
|
|
|
|
2012-04-20 11:35:31 +00:00
|
|
|
clean:
|
|
|
|
go clean . ./...
|
|
|
|
rm -rf ,,prevmd ,,pmd
|
|
|
|
|
|
|
|
parser: parser.leg.go
|
2010-11-21 22:04:39 +00:00
|
|
|
|
2012-04-20 11:35:31 +00:00
|
|
|
nuke:
|
|
|
|
rm -f parser.leg.go
|
2010-11-21 22:04:39 +00:00
|
|
|
|
2010-12-01 18:40:56 +00:00
|
|
|
|
2012-04-20 11:35:31 +00:00
|
|
|
# LEG parser rules
|
2010-11-21 22:04:39 +00:00
|
|
|
#
|
2012-04-20 11:35:31 +00:00
|
|
|
ifeq ($(MAKECMDGOALS),parser)
|
|
|
|
include $(shell go list -f '{{.Dir}}' github.com/knieriem/peg)/Make.inc
|
2010-11-21 22:04:39 +00:00
|
|
|
%.leg.go: %.leg $(LEG)
|
2012-04-23 22:15:47 +00:00
|
|
|
$(LEG) -verbose -switch -O all $< > $@
|
2010-11-21 22:04:39 +00:00
|
|
|
|
2012-04-20 11:35:31 +00:00
|
|
|
endif
|
2010-12-03 22:27:21 +00:00
|
|
|
|
|
|
|
|
2010-11-21 22:04:39 +00:00
|
|
|
include misc/devel.mk
|
|
|
|
|
|
|
|
.PHONY: \
|
2012-04-20 11:35:31 +00:00
|
|
|
all\
|
2010-11-21 22:04:39 +00:00
|
|
|
cmd\
|
2012-04-20 11:35:31 +00:00
|
|
|
nuke\
|
|
|
|
package\
|
|
|
|
parser\
|