-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
79 lines (54 loc) · 2.85 KB
/
Copy pathMakefile
File metadata and controls
79 lines (54 loc) · 2.85 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/make -f
VERSION_FILE := Cargo.toml
SDK_VERSION_FILE := smarty-rust-sdk/Cargo.toml
clean:
cargo clean
git checkout "$(VERSION_FILE)"
git checkout "$(SDK_VERSION_FILE)"
test:
cargo test
build:
cargo build
publish:
sed -i -r "s/version=\"0\.0\.0\"/version=\"${VERSION}\"/g" "$(SDK_VERSION_FILE)" \
&& sed -i -r "s/0\.0\.0/${VERSION}/g" "$(VERSION_FILE)" \
&& cargo publish --package smarty-rust-proc-macro --allow-dirty \
&& cargo publish --package smarty-rust-sdk --allow-dirty
clippy:
cargo clippy
international_autocomplete_api:
RUST_LOG=trace cargo run --example international_autocomplete_api
international_postal_code_api:
RUST_LOG=trace cargo run --example international_postal_code_api
international_street_api:
RUST_LOG=trace cargo run --example international_street_api
logger:
RUST_LOG=trace cargo run --example logger
us_autocomplete_pro_api:
RUST_LOG=trace cargo run --example us_autocomplete_pro_api
us_autocomplete_api:
RUST_LOG=trace cargo run --example us_autocomplete_api
us_extract_api:
RUST_LOG=trace cargo run --example us_extract_api
us_reverse_geo_api:
RUST_LOG=trace cargo run --example us_reverse_geo_api
us_street_iana_timezone:
RUST_LOG=trace cargo run --example us_street_iana_timezone
us_street_api:
RUST_LOG=trace cargo run --example us_street_api && RUST_LOG=trace cargo run --example us_street_component_analysis && RUST_LOG=trace cargo run --example us_street_iana_timezone && RUST_LOG=trace cargo run --example us_street_match_strategy
us_street_match_strategy:
RUST_LOG=trace cargo run --example us_street_match_strategy
us_zipcode_api:
RUST_LOG=trace cargo run --example us_zipcode_api
us_enrichment_api:
RUST_LOG=trace cargo run --example us_enrichment_api
us_enrichment_address_search_api:
RUST_LOG=trace cargo run --example us_enrichment_address_search_api
us_enrichment_business_api:
RUST_LOG=trace cargo run --example us_enrichment_business_api
us_enrichment_business_name_search_api:
RUST_LOG=trace cargo run --example us_enrichment_business_name_search_api
integration:
cargo test --test us_street_integration -- --ignored
examples: international_autocomplete_api international_postal_code_api international_street_api logger us_autocomplete_pro_api us_autocomplete_api us_extract_api us_reverse_geo_api us_street_api us_street_match_strategy us_zipcode_api us_enrichment_api us_enrichment_address_search_api us_enrichment_business_api us_enrichment_business_name_search_api
.PHONY: clean test dependencies package examples clippy integration international_autocomplete_api international_postal_code_api international_street_api logger us_autocomplete_pro_api us_autocomplete_api us_extract_api us_reverse_geo_api us_street_api us_street_match_strategy us_street_iana_timezone us_zipcode_api us_enrichment_api us_enrichment_address_search_api us_enrichment_business_api us_enrichment_business_name_search_api