Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
davidar committed Aug 22, 2019
1 parent 1e3eeaa commit 7bc47ad
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions stochaskell/Makefile
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
.PHONY: build
.PRECIOUS: %.prof

PROF = --profile --work-dir .stack-work.prof

build: env
stack build --interleaved-output

trace: env
stack build --interleaved-output --trace
stack build --interleaved-output $(PROF)

%-exe: build
stack exec $@

%.trace: trace
stack exec $* -- +RTS -xc
stack exec $(PROF) $* -- +RTS -xc

%.prof: trace
stack exec $* -- +RTS -p
stack exec $(PROF) $* -- +RTS -p
grep '[0-9][0-9][.]' $@

%.hp: trace
stack exec $* -- +RTS -h
stack exec $(PROF) $* -- +RTS -h
hp2ps -cg $@

env: edward/env pymc3/env
Expand Down

0 comments on commit 7bc47ad

Please sign in to comment.