-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (29 loc) · 1.02 KB
/
Makefile
File metadata and controls
35 lines (29 loc) · 1.02 KB
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
# XDR files from https://github.com/stellar/stellar-xdr
XDRS = xdr/Stellar-SCP.x \
xdr/Stellar-ledger-entries.x \
xdr/Stellar-ledger.x \
xdr/Stellar-overlay.x \
xdr/Stellar-transaction.x \
xdr/Stellar-types.x \
xdr/Stellar-contract-env-meta.x \
xdr/Stellar-contract-meta.x \
xdr/Stellar-contract-spec.x \
xdr/Stellar-contract.x \
xdr/Stellar-internal.x \
xdr/Stellar-contract-config-setting.x \
xdr/Stellar-exporter.x
# stellar-xdr commit to use, see https://github.com/stellar/stellar-xdr
XDR_COMMIT=4b7a2ef7931ab2ca2499be68d849f38190b443ca
.PHONY: xdr xdr-clean xdr-update
xdr-generate: $(XDRS)
docker run --rm -v $$PWD:/wd -w /wd ruby:3.4 /bin/bash -c '\
cd xdr-generator && \
bundle install --quiet && \
bundle exec ruby generate.rb'
./gradlew :spotlessApply
xdr/%.x:
curl -Lsf -o $@ https://raw.githubusercontent.com/stellar/stellar-xdr/$(XDR_COMMIT)/$(@F)
xdr-clean:
rm xdr/*.x || true
find src/main/java/org/stellar/sdk/xdr -type f -name "*.java" ! -name "package-info.java" -delete
xdr-update: xdr-clean xdr-generate