diff options
| author | John MacFarlane <[email protected]> | 2022-10-01 12:34:27 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-10-01 12:34:27 -0700 |
| commit | 20f82b0a8b47cdcdead0939a2c8fd2d459774fc7 (patch) | |
| tree | b8a2bcb91d157aebf370904da3e6951a0ce261a9 /Makefile | |
| parent | c51eeea4c7970652b91aa72b79fc9f46c01afecb (diff) | |
Makefile target to get module dependeny subgraphs.
E.g. what depends on Text.Pandoc.Parsing?
make modules.pdf ROOTNODE=T.P.Parsing
This is helpful for figuring out what we can split out as separate
packages.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -8,6 +8,7 @@ COMMIT=$(shell git rev-parse --short HEAD) TIMESTAMP=$(shell date "+%Y%m%d_%H%M") LATESTBENCH=$(word 1,$(shell ls -t bench_*.csv 2>/dev/null)) BASELINE?=$(LATESTBENCH) +ROOTNODE?=T.P ifeq ($(BASELINE),) BASELINECMD= else @@ -174,8 +175,10 @@ modules.dot: $(SOURCEFILES) | sed -e 's/Text\.Pandoc\([^ ]*\)/"T\.P\1"/g' >> $@ @echo "}" >> $@ +# To get the module dependencies of T.P.Parsing: +# make modules.pdf ROOTNODE=T.P.Parsing modules.pdf: modules.dot - cat $< | dot -Tpdf > $@ + gvpr -f tools/cliptree.gvpr -a '"$(ROOTNODE)"' $< | dot -Tpdf > $@ clean: ## clean up cabal clean |
