diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-10-29 13:15:09 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-10-29 13:15:09 -0700 |
commit | 218d212f30465eb1475a7aaa3b392f52d786f22d (patch) | |
tree | 6474561ad9cba514167918bd9ca43a30c750086d /Makefile | |
parent | 80df36350b8e3317020585be2f1b04012828261a (diff) | |
download | pandoc-218d212f30465eb1475a7aaa3b392f52d786f22d.tar.gz |
Makefile: make SOURCEFILES overridable for make lint, make format.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ version?=$(shell grep '^Version:' pandoc.cabal | awk '{print $$2;}') pandoc=$(shell find dist -name pandoc -type f -exec ls -t {} \; | head -1) -sourcefiles=$(shell find pandoc.hs src test -name '*.hs') +SOURCEFILES?=$(shell find pandoc.hs src test -name '*.hs') BRANCH?=master RESOLVER=nightly-2017-10-22 GHCOPTS=-fdiagnostics-color=always -Wall -fno-warn-unused-do-bind -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances @@ -26,10 +26,10 @@ weigh: stack build --resolver=$(RESOLVER) --ghc-options '$(GHCOPTS)' --flag 'pandoc:weigh-pandoc' && stack exec weigh-pandoc reformat: - for f in $(sourcefiles); do echo $$f; stylish-haskell -i $$f ; done + for f in $(SOURCEFILES); do echo $$f; stylish-haskell -i $$f ; done lint: - for f in $(sourcefiles); do echo $$f; hlint --verbose --refactor --refactor-options='-i -s' $$f; done + for f in $(SOURCEFILES); do echo $$f; hlint --verbose --refactor --refactor-options='-i -s' $$f; done changes_github: pandoc --filter extract-changes.hs changelog -t markdown_github | sed -e 's/\\#/#/g' | pbcopy |