forked from tqtezos/stablecoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 1.04 KB
/
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
37
38
39
40
41
42
43
44
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT
.PHONY: all build-ligo build-haskell optimize-ligo test test-dumb-term test-hide-successes nettest clean
# Morley executable, it is used for optimizing Michelson version
# of stablecoin.tz
MORLEY ?= morley
MAKE_HASKELL = $(MAKE) -C haskell/
MAKE_LIGO = $(MAKE) -C ligo/
all: build-ligo build-haskell
# Compile LIGO contract into its michelson representation
build-ligo:
$(MAKE_LIGO) stablecoin.tz
$(MAKE_LIGO) stablecoin.fa1.2.tz
$(MAKE_LIGO) metadata.tz
# Compile LIGO contract and then build everything haskell-related (including tests and benchmarks)
# with development options.
build-haskell:
$(MAKE_HASKELL) build
# Optimize built ligo contract using morley optimizer
optimize-ligo:
$(MORLEY) optimize --contract ligo/stablecoin.tz --output ligo/stablecoin.tz
test:
$(MAKE_HASKELL) test
test-dumb-term:
$(MAKE_HASKELL) test-dumb-term
test-hide-successes:
$(MAKE_HASKELL) test-hide-sucesses
nettest:
$(MAKE_HASKELL) nettest
clean:
$(MAKE_HASKELL) clean
$(MAKE_LIGO) clean