generated from serokell/metatemplates
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
36 lines (30 loc) · 852 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
31
32
33
34
35
36
# SPDX-FileCopyrightText: 2019 Serokell <https://serokell.io>
#
# SPDX-License-Identifier: CC0-1.0
# Example Makefile that you can put into root directory of a Haskell package.
# We assume that it is called "mypackage".
# It uses `make/Makefile`.
.PHONY: mypackage test haddock haddock-no-deps stylish lint clean all
# Build target from the common utility Makefile
MAKEU = $(MAKE) -C make/
MAKE_PACKAGE = $(MAKEU) PACKAGE=mypackage
mypackage:
$(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
all:
$(MAKEU) PACKAGE=""
test-all:
$(MAKEU) test PACKAGE=""
stylish:
find src/ test/ -name '*.hs' -exec stylish-haskell -i '{}' \;