aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-10-29 13:15:09 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-10-29 13:15:09 -0700
commit218d212f30465eb1475a7aaa3b392f52d786f22d (patch)
tree6474561ad9cba514167918bd9ca43a30c750086d /Makefile
parent80df36350b8e3317020585be2f1b04012828261a (diff)
downloadpandoc-218d212f30465eb1475a7aaa3b392f52d786f22d.tar.gz
Makefile: make SOURCEFILES overridable for make lint, make format.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e4d05eb1d..5065dca84 100644
--- a/Makefile
+++ b/Makefile
@@ -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