-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
42 lines (34 loc) · 958 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
37
38
39
40
41
42
.PHONY: help
help:
@echo "use: make <command>"
@echo
@echo "Where <command>:"
@echo " help -- show this help"
@echo " shell -- opens a development shell for the smart contract project"
@echo " code -- start a vscode instance in the nix development shell"
@echo " clean -- cabal clean"
@echo " build -- build the smart contracts"
@echo " test -- run the smart contract tests"
@echo " ci -- run ci job"
@echo " export -- exports the contracts to the exported directory"
.PHONY: shell
shell:
nix develop --extra-experimental-features ca-derivations
.PHONY: code
code:
nix-shell --command "code ."
.PHONY: clean
clean:
cabal clean
.PHONY: build
build:
cabal build
.PHONY: test
test:
cabal test --test-show-details=direct
.PHONY: ci
ci:
nix flake check --accept-flake-config --extra-experimental-features ca-derivations
.PHONY: export
export:
cabal run plutarch-template -f optimized