markdown/misc/devel.mk

35 lines
520 B
Makefile
Raw Normal View History

2010-11-21 22:04:39 +00:00
#
# development utilities
#
gofmt:
rc ./misc/gofmt.rc
diff: ,,c
tkdiff $< parser.leg
,,c: orig-c-src/markdown_parser.leg
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
benchmark: m ,,pmd ,,prevmd
rc ./misc/benchmark.rc
2011-06-30 22:40:45 +00:00
#
# pprof
#
pprof: cmd m
./cmd/markdown -cpuprofile /tmp/md.prof <m > /tmp/,,md.out
@echo gopprof \'--nodefraction=0.1\' ./cmd/markdown /tmp/md.prof
@echo gopprof ./cmd/markdown /tmp/md.prof
2010-11-21 22:04:39 +00:00
2011-06-30 22:40:45 +00:00
.PHONY:\
diff\
gofmt\
pprof\