diff options
| author | John MacFarlane <[email protected]> | 2022-10-01 17:52:03 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-10-01 17:52:03 -0700 |
| commit | 92e116af190731642eece075b91982e6af83d422 (patch) | |
| tree | c5faec3a83eee6f7376855a23c31bd30a158b14a /Makefile | |
| parent | dd07d8002fb01b7e4c4987dc78ff74b886fb4539 (diff) | |
Make modules.dot target more robust.
Only include source-controlled files under src.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,7 @@ version?=$(shell grep '^[Vv]ersion:' pandoc.cabal | awk '{print $$2;}') pandoc=$(shell find dist -name pandoc -type f -exec ls -t {} \; | head -1) SOURCEFILES?=$(shell git ls-tree -r master --name-only | grep "\.hs$$") +PANDOCSOURCEFILES?=$(shell git ls-tree -r master --name-only src | grep "\.hs$$") BRANCH?=master ARCH=$(shell uname -m) DOCKERIMAGE=registry.gitlab.b-data.ch/ghc/ghc4pandoc:9.2.3 @@ -162,10 +163,10 @@ update-website: ## update website and upload make -C $(WEBSITE) upload .PHONY: update-website -modules.dot: $(SOURCEFILES) +modules.dot: $(PANDOCSOURCEFILES) @echo "digraph G {" > $@ @echo "overlap=\"scale\"" >> $@ - @rg '^import.*Text\.Pandoc\.' --with-filename src \ + @rg '^import.*Text\.Pandoc\.' --with-filename $^ \ | rg -v 'Text\.Pandoc\.(Definition|Builder|Walk|Generic)' \ | sort \ | uniq \ |
