markdown/misc/devel.mk
Michael Teichgräber ac729cbd2f use the `go' tool where possible
--HG--
rename : cmd/main.go => cmd/markdown/main.go
2012-04-20 13:35:31 +02:00

37 lines
521 B
Makefile

MD=./cmd/markdown/markdown
#
# 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
bmprepare:
rc ./misc/bmprepare.rc
benchmark: m ,,pmd ,,prevmd
rc ./misc/benchmark.rc
#
# pprof
#
pprof: cmd m
$(MD) -cpuprofile /tmp/md.prof <m > /tmp/,,md.out
@echo gopprof \'--nodefraction=0.1\' $(MD) /tmp/md.prof
@echo gopprof $(MD) /tmp/md.prof
.PHONY:\
diff\
gofmt\
pprof\