-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
35 lines (27 loc) · 1.88 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
.PHONY: help sqlx-prepare sqlx-prepare-doc-storage-postgres sqlx-prepare-doc-storage-sqlite sqlx-prepare-vjson-storage-sqlite sqlx-prepare-wallet-storage-sqlite
.DEFAULT_GOAL := help
SHELL = bash
help:
@echo "Please use 'make <target>' where <target> is one of the following:"
@echo " sqlx-prepare to generate files for SQLX_OFFLINE build for all relevant crates"
@echo " sqlx-prepare-doc-storage-postgres to generate files for SQLX_OFFLINE build for did-webplus-doc-storage-postgres"
@echo " sqlx-prepare-doc-storage-sqlite to generate files for SQLX_OFFLINE build for did-webplus-doc-storage-sqlite"
@echo " sqlx-prepare-vjson-storage-sqlite to generate files for SQLX_OFFLINE build for vjson-storage-sqlite"
@echo " sqlx-prepare-wallet-storage-sqlite to generate files for SQLX_OFFLINE build for did-webplus-wallet-storage-sqlite"
#########################################################
# Make rules for generating files for SQLX_OFFLINE builds
#########################################################
# Generate files for SQLX_OFFLINE build for all relevant crates.
sqlx-prepare: sqlx-prepare-doc-storage-postgres sqlx-prepare-doc-storage-sqlite sqlx-prepare-vjson-storage-sqlite sqlx-prepare-wallet-storage-sqlite
# Generate files for SQLX_OFFLINE build for did-webplus-doc-storage-postgres
sqlx-prepare-doc-storage-postgres:
cd did-webplus/doc-storage-postgres && cargo sqlx prepare
# Generate files for SQLX_OFFLINE build for did-webplus-doc-storage-sqlite
sqlx-prepare-doc-storage-sqlite:
cd did-webplus/doc-storage-sqlite && cargo sqlx prepare
# Generate files for SQLX_OFFLINE build for did-webplus-vjson-storage-sqlite
sqlx-prepare-vjson-storage-sqlite:
cd vjson/storage-sqlite && cargo sqlx prepare
# Generate files for SQLX_OFFLINE build for did-webplus-wallet-storage-sqlite
sqlx-prepare-wallet-storage-sqlite:
cd did-webplus/wallet-storage-sqlite && cargo sqlx prepare