-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (22 loc) · 1.36 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
# Copyright (c) 2023 ASX Operations Pty Ltd. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
.PHONY: build test clean
.build/synfini-examples-package-v1.dar: v1/daml.yaml $(shell find v1 -name '*.daml')
cd v1 && daml build -o ../.build/synfini-examples-package-v1.dar
.build/synfini-examples-package-v2.dar: v2/daml.yaml $(shell find v2 -name '*.daml')
cd v2 && daml build -o ../.build/synfini-examples-package-v2.dar
.build/synfini-examples-package-upgrade.dar: .build/synfini-examples-package-v1.dar .build/synfini-examples-package-v2.dar upgrade/daml.yaml $(shell find upgrade -name '*.daml')
cd upgrade && daml build -o ../.build/synfini-examples-package-upgrade.dar
.build/synfini-examples-package-upgrade-scripts.dar: .build/synfini-examples-package-upgrade.dar scripts/daml.yaml $(shell find scripts -name '*.daml')
cd scripts && daml build -o ../.build/synfini-examples-package-upgrade-scripts.dar
build: .build/synfini-examples-package-v1.dar .build/synfini-examples-package-v2.dar .build/synfini-examples-package-upgrade.dar .build/synfini-examples-package-upgrade-scripts.dar
test: .build/synfini-examples-package-upgrade-scripts.dar test/daml.yaml $(shell find test -name '*.daml')
cd test && daml test
clean:
cd v1 && daml clean
cd v2 && daml clean
cd upgrade && daml clean
cd scripts && daml clean
cd test && daml clean
daml clean
rm -rf .build