yesod-auth-oauth2/Makefile
2018-07-28 15:05:43 -04:00

32 lines
651 B
Makefile

all: setup build test lint
.PHONY: setup
setup:
stack setup $(STACK_ARGUMENTS)
stack build $(STACK_ARGUMENTS) \
--flag yesod-auth-oauth2:example \
--dependencies-only --test --no-run-tests
stack install $(STACK_ARGUMENTS) --copy-compiler-tool hlint weeder
.PHONY: build
build:
stack build $(STACK_ARGUMENTS) \
--flag yesod-auth-oauth2:example \
--pedantic --test --no-run-tests
.PHONY: test
test:
stack build $(STACK_ARGUMENTS) \
--flag yesod-auth-oauth2:example \
--pedantic --test
.PHONY: lint
lint:
stack exec $(STACK_ARGUMENTS) hlint src test
stack exec $(STACK_ARGUMENTS) weeder .
.PHONY: clean
clean:
stack clean