git.iko.soy/typeable/pandoc
on master help sign in
Makefile: make SOURCEFILES overridable for make lint, make format.
commit218d212f30465eb1475a7aaa3b392f52d786f22d authorJohn MacFarlane <jgm@berkeley.edu> dateSun 29 Oct 2017, 13:15 (9 years ago) parent80df363
1 file changed+3−3
Makefile+3−3
Makefile+3−3
@@ -1,6 +1,6 @@
11version?=$(shell grep '^Version:' pandoc.cabal | awk '{print $$2;}')
22pandoc=$(shell find dist -name pandoc -type f -exec ls -t {} \; | head -1)
3−sourcefiles=$(shell find pandoc.hs src test -name '*.hs')
3+SOURCEFILES?=$(shell find pandoc.hs src test -name '*.hs')
44BRANCH?=master
55RESOLVER=nightly-2017-10-22
66GHCOPTS=-fdiagnostics-color=always -Wall -fno-warn-unused-do-bind -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
@@ -26,10 +26,10 @@ weigh:
2626 stack build --resolver=$(RESOLVER) --ghc-options '$(GHCOPTS)' --flag 'pandoc:weigh-pandoc' && stack exec weigh-pandoc
2727
2828reformat:
29− for f in $(sourcefiles); do echo $$f; stylish-haskell -i $$f ; done
29+ for f in $(SOURCEFILES); do echo $$f; stylish-haskell -i $$f ; done
3030
3131lint:
32− for f in $(sourcefiles); do echo $$f; hlint --verbose --refactor --refactor-options='-i -s' $$f; done
32+ for f in $(SOURCEFILES); do echo $$f; hlint --verbose --refactor --refactor-options='-i -s' $$f; done
3333
3434changes_github:
3535 pandoc --filter extract-changes.hs changelog -t markdown_github | sed -e 's/\\#/#/g' | pbcopy