-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (23 loc) · 917 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
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: 0BSD
VERSION := $(shell mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
BUILD_OUTPUT := target/hub-example-automation-$(VERSION)-jar-with-dependencies.jar
NAME := hub-example-automation
TARGET := $(NAME)-$(VERSION).jar
# SRC := $(wildcard src/*.java)
SRC := $(call must-shell,find . -type f -and -name "*.java" -o -name "*.xml" -o -name "*.conf")
all: daml-build daml-codegen $(TARGET)
$(TARGET): $(SRC) pom.xml
mvn install
cp $(BUILD_OUTPUT) $@
daml-build:
(cd ../example-model && daml build && cd ../java)
daml-codegen:
(cd ../example-model && daml codegen java && cd ../java)
daml-upload-dar:
(cd ../example-model && daml ledger upload-dar && cd ../java)
daml-start:
(cd ../example-model && daml start && cd ../java)
clean:
rm -rf dist
rm -f $(TARGET)