-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
30 lines (23 loc) · 871 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
all: FORCE
stack build --flag language-dockerfile:hadolint --flag language-dockerfile:dockerfmt
docker: FORCE
stack runghc ./language-dockerfile.dockerfile.hs
gh-pages:
bash -e ./stack-gh-pages
doctests: FORCE
find src | grep "\.hs$$" | while read pkg; do echo $$pkg; stack exec doctest $$pkg; done
examples: FORCE
stack runghc ./examples/parse.hs
stack runghc ./examples/parse-string.hs
stack runghc ./examples/pretty-print.hs
stack runghc ./examples/edsl.hs
stack runghc ./examples/edsl-quasi.hs
stack runghc ./examples/templating.hs
pull-upstream: FORCE
if ! ``git remote -v | grep lukasmartinelli`` ; then git remote add lukasmartinelli https://github.com/lukasmartinelli/hadolint ; fi
git fetch lukasmartinelli
git rebase lukasmartinelli/master
hlint: FORCE
find test | grep "\.hs$$" | xargs hlint
find src | grep "\.hs$$" | xargs hlint
FORCE: