2012-04-20 11:35:31 +00:00
|
|
|
MD=./cmd/markdown/markdown
|
|
|
|
|
2010-11-21 22:04:39 +00:00
|
|
|
#
|
|
|
|
# development utilities
|
|
|
|
#
|
|
|
|
gofmt:
|
|
|
|
rc ./misc/gofmt.rc
|
|
|
|
|
|
|
|
diff: ,,c
|
|
|
|
tkdiff $< parser.leg
|
|
|
|
|
2012-05-04 10:42:16 +00:00
|
|
|
,,c: ,,pmd/markdown_parser.leg
|
2010-11-21 22:04:39 +00:00
|
|
|
sed -f misc/c2go.sed < $< > $@
|
|
|
|
|
|
|
|
orig-c-src/markdown_parser.leg: orig-c-src
|
|
|
|
|
2011-07-04 16:25:32 +00:00
|
|
|
|
|
|
|
bmprepare:
|
|
|
|
rc ./misc/bmprepare.rc
|
|
|
|
|
2012-05-04 10:42:16 +00:00
|
|
|
benchmark: cmd m ,,pmd ,,prevmd
|
2011-07-04 16:25:32 +00:00
|
|
|
rc ./misc/benchmark.rc
|
|
|
|
|
|
|
|
|
2011-06-30 22:40:45 +00:00
|
|
|
#
|
|
|
|
# pprof
|
|
|
|
#
|
|
|
|
pprof: cmd m
|
2012-04-20 11:35:31 +00:00
|
|
|
$(MD) -cpuprofile /tmp/md.prof <m > /tmp/,,md.out
|
2012-04-20 11:49:21 +00:00
|
|
|
@echo go tool pprof \'--nodefraction=0.1\' $(MD) /tmp/md.prof
|
|
|
|
@echo go tool pprof $(MD) /tmp/md.prof
|
2010-11-21 22:04:39 +00:00
|
|
|
|
2011-06-30 22:40:45 +00:00
|
|
|
.PHONY:\
|
|
|
|
diff\
|
|
|
|
gofmt\
|
|
|
|
pprof\
|