-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 803 Bytes
/
Makefile
File metadata and controls
38 lines (31 loc) · 803 Bytes
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
31
32
33
34
35
36
37
38
# SPDX-FileCopyrightText: 2022 Serokell <https://serokell.io>
#
# SPDX-License-Identifier: MPL-2.0
.PHONY: tzbot test haddock haddock-no-deps stylish lint clean bats all
# Build target from the common utility Makefile
MAKEU = $(MAKE) -C make/
MAKE_PACKAGE = $(MAKEU) PACKAGE=tzbot
tzbot:
$(MAKE_PACKAGE) dev
test:
$(MAKE_PACKAGE) test
test-dumb-term:
$(MAKE_PACKAGE) test-dumb-term
test-hide-successes:
$(MAKE_PACKAGE) test-hide-successes
haddock:
$(MAKE_PACKAGE) haddock
haddock-no-deps:
$(MAKE_PACKAGE) haddock-no-deps
clean:
$(MAKE_PACKAGE) clean
run:
$(MAKEU) PACKAGE=tzbot-exe run
stylish:
find . -name '.stack-work' -prune -o -name 'dist-newstyle' -prune -o -name '*.hs' -exec stylish-haskell -i '{}' \;
lint:
hlint .
all:
$(MAKEU) PACKAGE=""
test-all:
$(MAKEU) test PACKAGE=""